to print 10 processes, that use the most CPU
ps -aux --sort -pcpu | head
Sorting syntax is
[+|-]key[,[+|-]key[,...]]
.
The "+
" is optional since default direction is increasing numerical or lexicographic order. Identical tok
. For example:ps jax --sort=uid,-ppid,+pid
head
- imprime as primeiras / 10 linhas de arquivo (s) ou entrada padrão (por padrão)