代码改变世界

Why does "ps -aux" complain about a bogus '-'?

2012-06-04 19:31  夜幕降临  阅读(255)  评论(0编辑  收藏  举报

Why does "ps -aux" complain about a bogus '-'?

According to the POSIX and UNIX standards, the above command asks to display all processes with a TTY (generally the commands users are running) plus all processes owned by a user named "x". If that user doesn't exist, then ps will assume you really meant "ps aux". The warning is given to gently break you of a habit that will cause you trouble if a user named "x" were created.