Commands using sleep (289)

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands


Check These Out

floating point operations in shell scripts
using bc is for sissies. dc is much better :-D Polish notation will rule the world...

shuffle lines via perl
Same, without modules... Probably smarter option: just use the shuf command or even sort -R.

Rot13 using the tr command
rot13 maps a..mn..z (A..MN..Z) to n..za..m (n..za..m) and so does this alias.

Download an entire ftp directory using wget
If the username includes an @ you can use this one: wget -r --user=username_here --password=pass_here ftp://ftp.example.com

list block devices
Shows all block devices in a tree with descruptions of what they are.

move a lot of files over ssh
copy files to a ssh server with gzip compression

See non printable caracters like tabulations, CRLF, LF line terminators ( colored )
For fancier and cleaner output, try the following snippet : $ showendlines(){ while read i; do od --address-radix=n --width=$(wc -c

Get the current svn branch/tag (Good for PS1/PROMPT_COMMAND cases)
uses just one sed

list block devices
Shows all block devices in a tree with descruptions of what they are.

Print github url for the current url
Works for repos cloned via ssh or https.


Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: