search

Home  >  Q&A  >  body text

linux - ps -aux 与 ps aux的区别

谁能讲一下自己对这两种用法的见解?

迷茫迷茫2783 days ago718

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 13:05:29

    man ps
    
    • 加横线是 standard syntax
    • 不加横线是 BSD syntax

    To see every process on the system using standard syntax:
    ps -e
    ps -ef
    ps -eF
    ps -ely

       To see every process on the system using BSD syntax:
          ps ax
          ps axu
    

    以 a 开头的作用

    a Lift the BSD-style "only yourself" restriction, which is imposed upon the set of all processes when some BSD-style (without "-") options are used or when the ps personality setting is BSD-like. The set of processes selected in this manner is in addition to the set of processes selected by other means. An alternate description is that this option causes ps to list all processes with a terminal (tty), or to list all processes when used together with the x option.

    reply
    0
  • Cancelreply