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

Automatically create a rar archive
This command creates a rar archive from all files in the current folder and names the archive after the folder name.

Terrorist threat level text

Change pidgin status
Thanks for the comment oshazard, i wasn't aware of purple-remote existence.

python - covert image to base64 string for data URI use
useful if you are using lots of data URI's in your css files

recursively change file name from uppercase to lowercase (or viceversa)
or, to process a single directory: $ for f in *; do mv $f `echo $f |tr '[:upper:]' '[:lower:]'`; done

convert all flac files in a folder to mp3 files with a bitrate of 192 kbps

Find commets in jpg files.
Finds comments in jpg files, but I can't figure out how to exclude (in output) files without comments.

print offsets of file disk for losetup/loop-mount
If you want to mount partitions of an disk image, you need the offsets and sizes of the partitions. This command prints them in the format that losetup understands.

resolve short urls
since the most url shorteners respond with a header containing the Location: ... this works with most common shorteners

Locate config files of the program
Locate config files of the program. May not be used for interactive programs like vim.


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: