“ps aux” works but “ps -aux” doesn't

前端 未结 2 531
悲&欢浪女
悲&欢浪女 2021-02-07 12:14

This might seem like a silly question but I haven\'t been able to find a clear answer.

This website states that the dash is optional in

ps aux
         


        
2条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-07 12:29

    man ps
    

    will give you this:

     The biggest change is in the interpretation of the -u option, which now
     displays processes belonging to the specified username(s).  Thus, "ps
     -aux" will fail (unless you want to know about user "x").  As a conve-
     nience, however, "ps aux" still works as it did in Tiger.
    

提交回复
热议问题