Created
December 31, 2014 23:46
-
-
Save samyranavela/cf85c172cb8ac4a1db48 to your computer and use it in GitHub Desktop.
Shortcut to search a process by name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# http://www.commandlinefu.com/commands/view/13947/shortcut-to-search-a-process-by-name | |
psg(){ ps aux | grep -v grep | egrep -e "$1|USER"; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment