pgrep
pgrep 命令 - 根据名称查找进程ID
根据名称查找进程ID
进程管理

⌨️ 命令语法

pgrep [选项] 模式

⚙️ 常用参数

-u指定用户
-l显示进程名

💡 实战示例

  • $ pgrep nginx
    查找nginx进程ID