dstat is a general-purpose system profiling tool.
Read More
cpulimit - limits the cpu usage of a process Read More
# ps -auxf | sort -nr -k 3 | head -10
# ps -auxf | sort -nr -k 4 | head -10
Sometimes it’s not clear what shell you get when logging in on one of your obscure servers ;-).
Here’s how to get your shell name:
ps -p $$
Most of the time u will probably use bc with floating point calculations. Here’s an alternative in case bc is not available:
$ echo 3 | awk ‘{print 0.25*$1}
0.75
$
Everybody knows how to concatenate multiple files. However sometimes you’ll want to concatenate multiple files horizontally, meaning line 1 from file 1 with line 1 from file 2 etc.
Read More
Ever got this message from your bash shell when removing lots of files?
Read More