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

Don't save commands in bash history (only for current session)
Unsetting HISTFILE avoid getting current session history list saved.

Processes by CPU usage

Check if a domain is available and get the answer in just one line
Returns nothing if the domain exists and 'No match for domain.com' otherwise.

Install pip with Proxy
Installs pip packages defining a proxy

Are the two lines anagrams?
This is just a slight alternative that wraps all of #7917 in a function that can be executed

Top Command in batch mode
running top command in batch mode. it is usefull if you want to redirect the output in a file.

Short and elegant way to backup a single file before you change it.
Remember to backup everything before changing it so you can restore all to normal.

create ICO file with more than one image
requires imagemagick. -background transparent is of course optional.

Dump audio from video without re-encoding.
This removes the video and subsequent file size and directly copies the audio.

Waste time for about 3 minutes
If you're a slow reader and/or you like to ponder, adjust the sleep time to be longer


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: