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

Compare a remote file with a local file

Clear the terminal screen
works in /bin/bash

Remove stored .zip archive passwords from Windows credential manager
Don't want to log out but you do want to get rid of a stored .zip file password in Windows? This will do that.

Read a tcpdump file and count SYN packets to port 80, Order column by destination.

Rename files in batch

Label EXT2/EXT3 File System

Install pip with Proxy
Installs pip packages defining a proxy

Google URL shortener
(1) required: python-googl ( install by: pip install python-googl ) (2) get from google API console https://code.google.com/apis/console/

grep processes list avoiding the grep itself
Trick to avoid the form: grep process | grep - v grep

full path listing in /directory/path/* of javascript files.
file listing in /directory/path/* of specific files such as javascript(js) .


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: