pgrep
com-bines the functionality of the ps and grep commands into a single utility. When you run pgrep, you specify certain
selection criteria that you want to look for.
-P ppid matches on the specified parent process ID.
-f name matches on the specified process name.
-u user_namematches on the specified process owner.
If you want to view the name of the process as well as its PID, use the –l option with pgrep com-mand.
>pgrep -l -u root
>pgrep -P 7124
>pgrep -f top
>pgrep -u kenmsipe
No comments:
Post a Comment