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:
mplayer -vo caca will give you a similar result but in color
instead of writing:
if [[ "$1" == "$2" ]]; then
echo "$1 is equal $2"
echo "$1 differs from $2"
[[ "$1" == "$2" ]] && echo "$1 is equal $2" || echo "$1 differs from $2"
This finds a process id by name, but without the extra grep that you usually see. Remember, awk can grep too!
search file for string1 or string2
Pump up the chatter, run this script on a regular basis to listen to your twitter timeline.
This is a rough first cut using several cli clips I have spotted around. There is no facility to not read those things already read to you. This could also easily be put in a loop for timed onslaught from the chatterverse, though I think it might violate several pointsof the Geneva Convention
UPDATE - added a loop, only reads the first 6 twits, and does this every 5 mins.
Very entertaining when run on someone elses machine remotely ;)
-P displays a progress meter
-z tells rsync to use compression
or replace "espeak" with "festival --tts" if you like festival better
when your buddy leaves his computer unlocked use "crontab" or "at" to play at some time that would be most embarassing (during his next sales presentation)
echo "fortune -o | espeak" | at now + 30 minutes
of course you can exclude the "-o" for non offensive fortunes, or if you don't have offensive fortunes installed
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"