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

Watch active calls on an Asterisk PBX
Only the number of calls nothing else.

List your largest installed packages (on Debian/Ubuntu)

lists files and folders in a folder
lists files and folders in a folder with summary.

To have only unique lines in a file

list all file extensions in a directory
... plus do a sort according frequency

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

Another way to see the network interfaces
Like many other thing in Linux ,you can see the same thing in different way.

A "Web 2.0" domain name generator and look for register availability
You would need pwgen installed first, on ubuntu you can get it by apt-get $ sudo apt-get install pwgen

Calculating number of Connection to MySQL

modify a file in place with perl
changes THIS to THAT in all files matching fileglob* without using secondary files


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: