netstat
a: Show both listening and non-listening, t: Show TCP, n: Show numerical addresses instead of trying to determine symbolic host, port or user names, u: Show UDP, p: Show the PID and name of the program to which each socket belongs. tailf
You have to use tail if you want to follow more than one file:
df
More info about inodes: Check this doc ! iostat
The first report line provides statistics concerning the time since the system was started. |
top
Some interactive commands h: display help c: toggle between process name only / full command line u: show the processes for a specific user only n: display a maximum of n processes k: kill a process H: show threads (also called Light Weight Processes) z: toggle between monochrome and color display ps
Shell keyboard shortcuts
|
Cheatography
https://cheatography.com
Created By
https://tme520.com
Metadata
Favourited By
Comments
notm1ke, 23:26 11 Dec 21
I received a syntax error when run this:
netstat -an | grep ESTABLISHED | awk '{print $5}' | awk -F: '{print $1}' | sort | uniq -c | awk '{ printf("%s\t%s\t",$2,$1) ; for (i = 0; i < $1; i++) {printf("*")}; print "" }'
Add a Comment
Related Cheat Sheets
More Cheat Sheets by TME520