Skip to content

Instantly share code, notes, and snippets.

@hydra35
Created January 15, 2013 11:28
Show Gist options
  • Save hydra35/4537993 to your computer and use it in GitHub Desktop.
Save hydra35/4537993 to your computer and use it in GitHub Desktop.
Show me kernel threads(CentOS 6)
ps auwx | grep -E '\[.*\]' | grep -v grep | awk '{print $NF}' | awk -F/ '{print $1}' | sed 's/\[//g' | sed s'/\]//g' | sort | uniq | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment