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.

相关文章:

  • 2021-10-20
  • 2022-12-23
  • 2022-02-28
  • 2021-09-24
  • 2022-02-04
  • 2021-06-22
  • 2021-12-28
  • 2021-07-06
猜你喜欢
  • 2022-12-23
  • 2021-04-11
  • 2021-09-27
  • 2022-01-15
  • 2021-10-18
  • 2022-12-23
相关资源
相似解决方案