commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Want to know why your load average is so high? Run this command to see what processes are on the run queue. Runnable processes have a status of "R", and commands waiting on I/O have a status of "D".
On some older versions of Linux may require -emo instead of -eo.
On Solaris: ps -aefL -o s -o user -o comm | egrep "^O|^R|COMMAND"
Yet another ps grep function, but this one includes the column headings.
This command would be useful when it is desirable to list only the directories. 'egrep' chooses only the lines that begin with 'd'.
Greps IRC logs for phrases and lists users who said them.