Timeline for puzzles list by climagic
-
for i in 0 1 2; do mdadm --remove /dev/md$i /dev/sdb$(($i+1)); done # A nice one-liner @kaerast used to remove a failed disk from raid.
-
cowsay 'Happy Birthday!' | toilet -f term --gay # Cow says Happy Birthday! in rainbow colors.
-
exec -a vim nethack # Now if your boss runs ps aux on your system, they will think you're working, not playing a game.
-
Of course, 3133700000 will be the mother of all epoch dates. April 20th, 20[69] and Unix will be 99.9 years old too. Quite a convergence.
-
date +%s # Speaking of date, today is the last day you'll see the 1337 prefix in the Unix epoch. Next time will be in 2393. #hackerhalfmonth
-
date -d 2011-11-21 +%A # What day of the week was November 21st, 2011 on? This requires GNU date for the -d option.
-
acronym(){ elinks -no-numbering -dump "http://ur1.ca/5zdvm" |sed -r '/(\*{4,}|This definition)/!d'; } # acronym TIMTOWTDI
-
BTW, next Tuesday, May 29th is CLI Day: http://ur1.ca/9dh2j Thanks @stormdragon2976
-
zipcode="90210";elinks -dump "http://ur1.ca/9dgn5{zipcode}" | grep -A 4 "Current " # Current weather. Thx @stormdragon2976
-
You can also use "pgrep myscript.sh" to do the ps and grep in one step and avoid greping the grep. I like playing with nunchucks though.
-
Useless Use of Nunchucks - Twirling nunchucks around your body is a useless maneuver and you might hit yourself in the face.
-
The reason for the square brackets around the m in myscript.sh is because otherwise it would match the grep process itself.
-
while ( ps auxw | grep "[m]yscript.sh" ); do sleep 1; done; cp -va /src /dst # Wait until myscript.sh is done, but copying /src to /dst
-
sleep 1h 20m ; mplayer HEY.mp3 # Quick and dirty alarm to audibly remind yourself that in an hour and 20 minutes, do something important.
-
http://ur1.ca/86y16 # CLIMAGIC quick video: Using comments in the interactive shell.
-
while true;do f=$(grep -r -l "Confirmation No:" . |head -n1);if [[ -e $f ]]; ls -l $file ;break;fi;sleep 1;done # Wait for file in dir.
-
Linux: I haven't rebooted for a month. Windows: I haven't been rooted for a month. #proudusers
-
find / -type f -perm /6000 -ls # See all the files/programs with suid or sgid bits set.
-
"f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng." -fortune
-
http://bit.ly/JCWU9J # Linux In The Shell also did a great post on Unix permissions just yesterday. Good primer. Thx @codepoet_ch