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

Find directories under home directory with 777 permissions, change to 755, and list them on console

Convert a Nero Image File to ISO
This line removes the 300k header from a Nero image file converting it to ISO format

Short and elegant way to backup a single file before you change it.
Remember to backup everything before changing it so you can restore all to normal.

split a string (2)

Open a manpage in the default (graphical) web browser
An easy alias for opening a manpage, nicely HTML formatted, in your set internet browser. If you get a "command exited with status 3" error you need to install groff.

Parse m3u playlist file for total time
Parse an m3u file with seconds for each item and output the length of the entire playlist

list files recursively by size

start a vnc server session to connect to a gdm login screen

Compute the average number of KB per file for each dir
Shorter version using --tag

check the filesystem and use a progress bar
if you happen to start with out the -C switch then you a killall -USR1 e2fsck


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: