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

Send a local file via email
Another way of sending an attachment. -s : subject file : file to be sent

Convert control codes to visible Unicode Control Pictures
Converts control codes and spaces (ASCII code ≤ 32) to visible Unicode Control Pictures, U+2400 ? U+2420. Skips \n characters, which is probably a good thing.

Email an svn dump
Dumps a compressed svn backup to a file, and emails the files along with any messages as the body of the email

Generate an XKCD #936 style 4 word password
4 random words are better than one obfuscated word http://xkcd.com/936/

Get shellcode of the binary using objdump
Anyone can make the command smaller & easier? :)

Terminal redirection
can display the commands and their output to another user who is connected to another terminal, by example pts/3

dmesg with colored human-readable dates
Use sed to color the output of a human-readable dmesg output

list with full path

add all files not under version control to repository
With the force options the same results can be achieved

List of macros defined by gcc
Lists all macros and their values defined by gcc.


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: