Shell's PS command parameter list explanation

Source: Internet
Author: User
Tags sort
Usage:ps [Options] Basic options:-A,-e all processes-a all with TTY, except Sessio N leaders a all with TTY, including and users-d all except session leaders-n,  --deselect Negate selection R only running processes T all processes on this  Terminal x processes without controlling TTYs Selection 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> Sessi     On 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 form At 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 <for                    Mat> 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)--conte      XT 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&
                      Gt Set screen height Show threads:h as if they where processes-l possibly with LWP and Nlwp columns-m, m after processes-t possibly with SPID column miscellaneous Opti                   ONS:-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 inclu De some dead child process data-y does not show flags, show RSS (only with-l)-V,--version dis Play version information and exit-w, W unlimited output width--help <simple|list|output|thre Ads|misc|all> display Help and exit For more details see PS (1).
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.