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.


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM