Menü +

find ./ -type f -name '*source-string*'

ps – report a snapshot of the current processes.

# ---------------------------------------------------------
# ---    :
#
top -b -o +%MEM | head -n 22
#
#    [email protected]:~# top -b -o +%MEM | head -n 15
#    top - 18:58:03 up 22:51,  4 users,  load average: 0,39, 0,53, 0,63
#    Tasks: 304 total,   1 running, 303 sleeping,   0 stopped,   0 zombie
#    %Cpu(s): 25,8 us,  4,4 sy,  0,3 ni, 69,1 id,  0,3 wa,  0,0 hi,  0,1 si,  0,0 st
#    KiB Mem :  7966376 total,  1097564 free,  3275368 used,  3593444 buff/cache
#    KiB Swap:  3904508 total,  3904508 free,        0 used.  4065264 avail Mem 
#    
#      PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
#     5458 user0      20   0 2723228 1,371g 154904 S   0,0 18,0  90:40.96 firefox
#     8825 user0      20   0 2218904 451808 380216 S   0,0  5,7   2:06.06 VBoxHeadless
#     4436 user0      20   0 10,073g 266144 112416 S   6,2  3,3   4:58.96 plasmashell
#    11639 user0      20   0 1187708 246476 110836 S   0,0  3,1   0:10.20 plasma-discover
#     4383 user0      20   0 1532720 225028 146440 S   0,0  2,8   0:10.57 kded5
#     4423 user0      39  19 5527276 156388 126628 S   0,0  2,0   0:02.70 baloo_file
#     4428 user0      20   0 6660676 138064  73388 S   0,0  1,7   0:09.19 krunner
#     4562 user0      20   0 2421632 130240  12668 S   0,0  1,6   0:08.95 mysqld
#
# ---------------------------------------------------------
# ---------------------------------------------------------
# ---    :
#
ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head
#
#    [email protected]:~# ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head
#      PID  PPID CMD                         %MEM %CPU
#     5458  4380 /usr/lib/firefox/firefox    17.0  6.6
#     8825  7992 /usr/lib/virtualbox/VBoxHea  5.6  0.1
#     4436  4380 /usr/bin/plasmashell --shut  3.3  0.3
#    11639  4380 /usr/bin/plasma-discover     3.0  2.6
#     4383  4380 kded5 [kdeinit5]             2.8  0.0
#     4423  4380 /usr/bin/baloo_file          1.9  0.0
#     4428  4380 /usr/bin/krunner             1.7  0.0
#     4562  4558 /usr/sbin/mysqld --defaults  1.6  0.0
#     4462  4380 /usr/bin/perl /usr/bin/shut  1.5  0.0
#    
# ---------------------------------------------------------
# ---------------------------------------------------------
# ---    : Show top five CPU consuming processes with `ps`
#
ps aux | sort -nrk 3,3 | head -n 5

watch "ps aux | sort -nrk 3,3 | head -n 5"

# ---------------------------------------------------------

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.