Skip to content

Instantly share code, notes, and snippets.

@preaction
Created May 7, 2012 20:34
Show Gist options
  • Select an option

  • Save preaction/2630216 to your computer and use it in GitHub Desktop.

Select an option

Save preaction/2630216 to your computer and use it in GitHub Desktop.
Kill all sleep processes for the current user
ps au | perl -anle'print $F[1] if $F[10] eq "sleep"' | xargs kill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment