Skip to content

Instantly share code, notes, and snippets.

@imweijh
Created January 18, 2017 06:33
Show Gist options
  • Save imweijh/e3283b483217ed810e29bc4f0c717c6e to your computer and use it in GitHub Desktop.
Save imweijh/e3283b483217ed810e29bc4f0c717c6e to your computer and use it in GitHub Desktop.
在top展示指定名字的进程
top -c -p $(pgrep "java|samplicate" -d ",")
# 只展示java或者samplicate命名的进程
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment