Linux常用命令-pgrep
命令
pgrep
描述
look up or signal processes based on name and other attributes
根据名称查找进程PID
用法
1 | pgrep [options] pattern |
选项
1 | pattern支持正则 |
注意
pgrep
命令是根据条件过滤进程信息
示例
1 | $ pgrep sshd |
pgrep
look up or signal processes based on name and other attributes
根据名称查找进程PID
1 | pgrep [options] pattern |
1 | pattern支持正则 |
pgrep
命令是根据条件过滤进程信息
1 | $ pgrep sshd |