码迷,mamicode.com
首页 > 其他好文 > 详细

错误的ps -aux

时间:2016-04-18 22:33:14      阅读:367      评论:0      收藏:0      [点我收藏+]

标签:

今天在使用ps -aux的时候,发现有一句提醒

Warning: bad syntax, perhaps a bogus ‘-‘? See /usr/share/doc/procps-3.2.8/FAQ

使用man ps发现下面一段话

Note that "ps -aux" is distinct from "ps aux". The POSIX and UNIX
standards require that "ps -aux" print all processes owned by a user
named "x", as well as printing all processes that would be selected by
the -a option. If the user named "x" does not exist, this ps may
interpret the command as "ps aux" instead and print a warning. This
behavior is intended to aid in transitioning old scripts and habits. It
is fragile, subject to change, and thus should not be relied upon.

错误的ps -aux

标签:

原文地址:http://www.cnblogs.com/sysout/p/5396757.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!