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

Print CPU load in percent
Faster then all other commands here at cmdlinefu with the same purpose.

Number of CPU's in a system
this works for a Linux based system, other UNIX systems may have other way(s) to check the number of CPUs.

copy audio file from playlist to a floder
copy some file from xx.m3u to target folder

Set audible alarm when an IP address comes online
Waiting for your server to finish rebooting? Issue the command above and you will hear a beep when it comes online. The -i 60 flag tells ping to wait for 60 seconds between ping, putting less strain on your system. Vary it to your need. The -a flag tells ping to include an audible bell in the output when a package is received (that is, when your server comes online).

send a circular

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

tcpdump top 10 talkers
capture 2000 packets and print the top 10 talkers

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

GREP a PDF file.
This is a good alternative to pdf2text for Ubuntu. To install it: sudo apt-get install python-pdfminer

video thumbnail gallery
thumbnail gallery of video using totem


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: