- 论坛徽章:
- 0
|
- MNET\m_boblin@MNET-SZ-245:~> ps --format='pid,ppid,pgrp,sid,tty,cmd'
- PID PPID PGRP SID TT CMD
- 30652 31386 30652 31386 pts/422 ps --format=pid,ppid,pgrp,sid,tty,cmd
- 31386 31371 31386 31386 pts/422 /bin/bash
- MNET\m_boblin@MNET-SZ-245:~>
- MNET\m_boblin@MNET-SZ-245:~> pgrep -g 31386
- pgrep: No matching criteria specified
- Usage: pgrep [-flvx] [-d DELIM] [-n|-o] [-P PPIDLIST] [-g PGRPLIST] [-s SIDLIST]
- [-u EUIDLIST] [-U UIDLIST] [-G GIDLIST] [-t TERMLIST] [PATTERN]
- MNET\m_boblin@MNET-SZ-245:~>
复制代码
- MNET\m_boblin@MNET-SZ-245:~> pgrep -s 31386
- 31386
- MNET\m_boblin@MNET-SZ-245:~
复制代码 为什么 -g 不能用呢 ? |
|