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

Ping all hosts on 192.168.1.0/24
Pings all the hosts on 192.168.1.0/24 in parallel, so it is very fast. Alive host IP addresses are echoed to stdout as pings are responded to.

Clear mistyped passwords from password prompt
Type ^u at password prompt to clear a mistyped password.

Find all files under a certain directory /home that have a certain suffix at the end of the file name. Show the file and rename them to remove the suffix.

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

Replace spaces in filenames with underscores

Monitor memory without top or htop
It repeats a command, such as free, every five seconds and highlights the differences

Number of commits per day in a git repository

check open ports without netstat or lsof

Prettify an XML file
Generated XML files often are poorly formatted. Use this command to properly indent and normalize the file in-place.

Install pip with Proxy
Installs pip packages defining a proxy


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: