Option | +Description | +
-l | +Show process id's in addition to the normal information. | +
-p | +Show process id's only. | +
-n | +Show only processes that have changed status since the last notification are printed. | +
-r | +Restrict output to running jobs only. | +
-s | +Restrict output to stopped jobs only. | +
-x | +COMMAND is run after all job specifications that appear in ARGS have been replaced with the process ID of that job's process group leader./td> | +
DISTRIBUTION | -LOW-LEVEL TOOL | -HIGH-LEVEL TOOL | -
Debian and derivatives | -dpkg | -apt-get / aptitude | -
CentOS | -rpm | -yum | -
openSUSE | -rpm | -zypper | -
发行版 | +低级工具 | +高级工具 | +
Debian版及其衍生版 | +dpkg | +apt-get / aptitude | +
CentOS版 | +rpm | +yum | +
openSUSE版 | +rpm | +zypper | +
限定符 | +描述 | +
---|---|
. | +匹配任意的一个字符. | +
? | +匹配前面的子表达式,最多一次。 | +
* | +匹配前面的子表达式零次或多次。 | +
+ | +匹配前面的子表达式一次或多次。 | +
{N} | +匹配前面的子表达式 N 次。 | +
{N,} | +匹配前面的子表达式 N 次到多次。 | +
{N,M} | +匹配前面的子表达式 N 到 M 次,至少 N 次至多 M 次。 | +
- | +只要不是在序列开始、结尾或者序列的结束点上,表示序列范围 | +
^ | +匹配一行开始的空字符串;也表示字符不在要匹配的列表中。 | +
$ | +匹配一行末尾的空字符串。 | +
\b | +匹配一个单词前后的空字符串。 | +
\B | +匹配一个单词中间的空字符串 | +
\< | +匹配单词前面的空字符串。 | +
\> | +匹配单词后面的空字符串。 | +