shell的ps命令參數列表解釋說明

來源:互聯網
上載者:User
Usage: ps [options]Basic options: -A, -e               all processes -a                   all with tty, except session leaders  a                   all with tty, including other users -d                   all except session leaders -N, --deselect       negate selection  r                   only running processes  T                   all processes on this terminal  x                   processes without controlling ttysSelection by list: -C <command>         command name -G, --Group <gid>    real group id or name -g, --group <group>  session or effective group name -p, --pid <pid>      process id     --ppid <pid>     select by parent process id -s, --sid <session>  session id -t, t, --tty <tty>   terminal -u, U, --user <uid>  effective user id or name -U, --User <uid>     real user id or name  selection <arguments> take either:    comma-separated list e.g. '-u root,nobody' or    blank-separated list e.g. '-p 123 4567'Output formats: -F                   extra full -f                   full-format, including command lines  f, --forest         ascii art process tree -H                   show process hierarchy -j                   jobs format  j                   BSD job control format -l                   long format  l                   BSD long format -M, Z                add security data (for SELinux) -O <format>          preloaded with default columns  O <format>          as -O, with BSD personality -o, o, --format <format>                      user defined format  s                   signal format  u                   user-oriented format  v                   virtual memory format  X                   register format -y                   do not show flags, show rrs vs. addr (used with -l)     --context        display security context (for SELinux)     --headers        repeat header lines, one per page     --no-headers     do not print header at all     --cols, --columns, --width <num>                      set screen width     --rows, --lines <num>                      set screen heightShow threads:  H                   as if they where processes -L                   possibly with LWP and NLWP columns -m, m                after processes -T                   possibly with SPID columnMiscellaneous options: -c                   show scheduling class with -l option  c                   show true command name  e                   show the environment after command  k,    --sort        specify sort order as: [+|-]key[,[+|-]key[,...]]  L                   list format specifiers  n                   display numeric uid and wchan  S,    --cumulative  include some dead child process data -y                   do not show flags, show rss (only with -l) -V, V, --version     display version information and exit -w, w                unlimited output width        --help <simple|list|output|threads|misc|all>                      display help and exitFor more details see ps(1).

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.