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

Email an svn dump
Dumps a compressed svn backup to a file, and emails the files along with any messages as the body of the email

Number file

View an info page on a nice interface
Nice interface for an info page.

use wget to check if a remote file exists
put your link [url] to check if exist the remote file

Install pip with Proxy
Installs pip packages defining a proxy

Suspend to ram
No need to be root to do that. Relies on UPower (previously known as DeviceKit-Power).

Function to split a string into an array

shuffle lines via perl
Same, without modules... Probably smarter option: just use the shuf command or even sort -R.

NICs, IPs, and Mac
Needed to get the Mac of various devices on a solaris box, but didn't have root. This command used awk to display the Network device, the IP, and the MAC a line at a time.

A simple command to toggle mute with pulseaudio (any sink)
0 can also be replaced by the source name, e.g. alsa_output.pci-0000_00_1b.0.analog-stereo


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: