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

return the latest kernel version from a Satellite / Spacewalk server software channel

list the top 15 folders by decreasing size in MB
list the top 15 folders by decreasing size in MB

prevents replace an existing file by mistake
Use set +o noclobber and you will be able to replace files again

Transforms a file to all uppercase.
Transforms a file to all uppercase.

switch case of a text file

Lurk what's going on on remote console

Print just line 4 from a textfile
Prints the 4th line and then quits. (Credit goes to flatcap in comments: http://www.commandlinefu.com/commands/view/6031/print-just-line-4-from-a-textfile#comment.)

pdfcount: get number of pages in a PDF file

Rsync a directory excluding pesky .svn dirs

Clear your history saved into .bash_history file!
clears the history


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: