ps --sort排序功能
ps aux --sort +rss/rss根据内存正序排
ps aux --sort -rss 逆序
ps aux --sort -pid/pid
ps aux --sort %cpu/-%cpu 根据cpu排序
关于ps命令显示不全的解决方法:ps aux | more ; ps auxww 后面的w要写两遍
man ps看下帮助信息:
 -w      Use 132 columns to display information, instead of the default which is your window size.  If the -w option is specified more than once, ps will use as many columns as
             necessary without regard for your window size.  When output is not to a terminal, an unlimited number of columns are always used.
 
                    
                
 
 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号