Command Line Magic climagic@identi.ca
Cool Unix/Linux Command Line tricks you can use in 140 characters or less.
2013-07-10T15:48:44+00:00 via Net::Twitter To: Public
convert -delay 150 -dispose 2 -geometry 800x496 -size 800x496 drain_{{0,50,100,200,500}m,{1,2,3,5}km,ed,nl}.png oceandrain.gif #xkcd whatifm2951413 likes this.
m2951413, Michael Armbrecht shared this.
2013-07-10T14:34:39+00:00 via Net::Twitter To: Public
yum -y update 2>&1 | tee update-log-20130708 # Log your yum update while viewing it. RIP Seth Vidal, creator of yum. Be careful out there.ザシャ shared this.
2013-07-09T20:36:33+00:00 via Net::Twitter To: Public
df isos # If you give df a directory as an arg, it will give you the filesystem that directory is on as if you specified the FS itself.zinayfuzz likes this.
2013-07-09T19:04:16+00:00 via Net::Twitter To: Public
canto # A nice command line (ncurses) based RSS reader.Danc shared this.
currently i prefer rss2email, local mailboxes and mutt… makes scripting/exporting things easy :-) #rss #feedreader #atom #ncurses #shell2013-07-09T18:40:20+00:00 via Net::Twitter To: Public
while :; do date|tr -d $'\n'; ./statsprocess|grep stattext;sleep 5;done |awk '{if ($4>m) {print $0; m=$4;}} # Latest max stat from program2013-07-09T16:21:21+00:00 via Net::Twitter To: Public
sensors # List your hardware sensor data (requires lm-sensors package). Use -f if you want Fahrenheit2013-07-09T15:14:37+00:00 via Net::Twitter To: Public
http://bit.ly/nHw87s Baby rocked to sleep with 'eject -t'.me, me, me, ghostdancer shared this.
2013-07-09T14:05:23+00:00 via Net::Twitter To: Public
awk '(NR%20==0) { print $NF }' data.txt # Print the last field of every 20th line in the file data.txtMarcio B. Jr. likes this.
Marcio B. Jr., Hilton Garcia Fernandes shared this.
2013-07-08T20:21:25+00:00 via Net::Twitter To: Public
Give me something to edit. Anything. And give me something while i'm waiting.2013-07-08T20:17:33+00:00 via Net::Twitter To: Public
vim . # You've probably stumbled upon this feature once in a while. But it can be useful if you want to edit some file but don't know what.2013-07-08T14:23:27+00:00 via Net::Twitter To: Public
http://bit.ly/182Z6Gt # @connermcd just made the 4th and final part to his learning sed series. Check it out.2013-07-05T19:29:18+00:00 via Net::Twitter To: Public
You know I always get a little offended when rsync asks me if my shell is clean.2013-07-04T18:28:02+00:00 via Net::Twitter To: Public
play -n synth sine 8000 bend 0.5,-1800,5 flanger 0 3 0 20 10 tri 20 quad trim 0 7 # Virtual fireworks noises (WARNING: screamer)°\•/° likes this.
2013-07-04T14:32:50+00:00 via Net::Twitter To: Public
/usr/lib/xscreensaver/skyrocket # More fireworks! GUI output, but many CLI options. You need the rss-glx screensavers package.2013-07-04T13:32:23+00:00 via Net::Twitter To: Public
http://bit.ly/O5r3B6 # Heat wave banned fireworks in your area? Try launching some of your own shells.Justin R. Andrusk shared this.
2013-07-03T20:11:13+00:00 via Net::Twitter To: Public
http://bit.ly/18wsmIb # As you click on this link, remember Douglas Engelbart, who made it possible. He just passed away at 88. :-(2013-07-03T19:21:41+00:00 via Net::Twitter To: Public
yesterday(){ date -d "${1:-now} - 1 day" +"${2:-%Y%m%d}"; } # A function that can give you previous day. Can take date arg and format. GNU2013-07-03T15:39:22+00:00 via Net::Twitter To: Public
ls /usr/local | grep -v -f<(ls /usr) # Show the files/directories names from /usr/local that aren't also used in /usr.2013-07-03T14:08:04+00:00 via Net::Twitter To: Public
ionice -c3 nice tar pjcvf saved{.tar.bz2,} |pv -l -s $(find saved -type f|wc -l) >/dev/null # tar up dir 'saved' with line progress & ionice2013-07-02T20:37:44+00:00 via Net::Twitter To: Public
find . -name '*.txt' \( -user apache -o \( \! -user apache -a -perm /044 \) \) # Find .txt files readable by apache user.