🖥️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.
2 minute read
▁ ▂ ▃ ▄ ꧁ 🔴☠ 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 #
#==============================##==============================#
Cheatsheets are an excellent complement to other information sources like Linux man-pages, Linux help, or How-To’s and tutorials, as they provide compact and easily accessible information. While man-pages and detailed tutorials often contain comprehensive explanations and extensive guides, cheatsheets summarize the most important options forthe command top in a clear format. This allows users to quickly access the needed information for top without having to sift through lengthy texts. Especially in stressful situations or for recurring tasks, cheatsheets for top are a valuable resource to work efficiently and purposefully.
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
█║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌
██╗ ██╗ ██████╗ ██████╗ ██╗ ██╗███████╗██████╗
████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
╚██╔═██╔╝██║ ██║██║ ██║ ╚███╔╝ █████╗ ██║ ██║
████████╗██║ ██║██║ ██║ ██╔██╗ ██╔══╝ ██║ ██║
╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝
█║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.