🖥️top

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the top command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

#                ████████╗ ██████╗ ██████╗ 
#                ╚══██╔══╝██╔═══██╗██╔══██╗
#                   ██║   ██║   ██║██████╔╝
#                   ██║   ██║   ██║██╔═══╝ 
#                   ██║   ╚██████╔╝██║     
#                   ╚═╝    ╚═════╝ ╚═╝     
                

                                          
# Update every <interval> samples:
top -i <interval>

# Set the delay between updates to <delay> seconds:
top -s <delay>

# Set event counting to accumulative mode:
top -a

# Set event counting to delta mode:
top -d

# Set event counting to absolute mode:
top -e

# Do not calculate statistics on shared libraries, also known as frameworks:
top -F

# Calculate statistics on shared libraries, also known as frameworks (default):
top -f

# Print command line usage information and exit:
top -h

# Order the display by sorting on <key> in descending order
top -o <key>

# Cool trick to color rows of `top` ouput with awk :)
top -bn  1 | awk '{ if ($1 == "PID") print "\033[41m"$0"\033[0m"; else if ($1 ~ "[0-9]+" && NR%2 == 0) print "\033[36m"$0"\033[0m"; else print }'

top -bn 1 | sed -n '/yes/p'

#==============================##==============================#
# CMD TOP						       #
#==============================##==============================#
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░