All commands (13,916)

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

print a python-script (or any other code) with syntax-highlighting and no loss of indentation

Function to create an alias on the fly
Is used like this: mkalias rmcache "rm -rfv app/cache/*"

SVN script for automatically adding and deleting files

Convert CSV to JSON
Replace 'csv_file.csv' with your filename.

Translates a phrase from English to Portuguese
Translates a string from English to Portuguese by using google translator web service.

Display the top 10 running processes - sorted by memory usage
A pretty nice display of processes.

Finding files with different extensions
This is the way how you can find header and cpp files in the same time.

Send pop-up notifications on Gnome
The title is optional. Options: -t: expire time in milliseconds. -u: urgency (low, normal, critical). -i: icon path. On Debian-based systems you may need to install the 'libnotify-bin' package. Useful to advise when a wget download or a simulation ends. Example: $ wget URL ; notify-send "Done"

Install pip with Proxy
Installs pip packages defining a proxy

Run a script in parrallel over ssh
Runs a local script over ssh assuming ssh keys are in place. -P argument prints results to stdout. # Uses - https://code.google.com/p/parallel-ssh/


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: