All commands (14,187)

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

Center text in console with simple pipe like
Center the output text in max line length of buffered output pipe;

Copy files from multiple directories into one directory

Limit the transfer rate and size of data over a pipe
This example will close the pipe after transferring 100MB at a speed of 3MB per second.

Securely destroy data on given device hugely faster than /dev/urandom
This command generates a pseudo-random data stream using aes-256-ctr with a seed set by /dev/urandom. Redirect to a block device for secure data scrambling.

Paste OS X clipboard contents to a file on a remote machine
Redirects the contents of your clipboard through a pipe, to a remote machine via SSH.

Human readable directory sizes for current directory, sorted descending

Extract HTTP Passwords in POST Requests

Display disk partition sizes

sort list of email addresses by domain.tld
email random list can be created here: https://www.randomlists.com/email-addresses

Find files and calculate size of result in shell
Use find's internal stat to get the file size then let the shell add up the numbers.


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: