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

Query cheat.sh from the termianl. A quick access cheat sheet for a range of linux commands!

create a progress bar...
A simple way yo do a progress bar like wget.

Remove security limitations from PDF documents using ghostscript (for Windows)
#4345 also works under windows

What is the use of this switch ?
e.g. $ manswitch grep -o This will take you to the relevant part of the man page, so you can see the description of the switch underneath.

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

Find the package that installed a command

Show most common words in filenames
I'm sure there's a more elegant sed version for the tr + grep section.

Apply substitution only on the line following a marker
I've been auto-generating some complex GnuPlots; with multiplots the first plot of each group needs to be a 'plot' whereas the others need to be 'replots' to allow overplotting/autoscaling/etc to work properly. This is used to replace only the first instance of 'replot'.

Print the IPv4 address of a given interface

Perform a C-style loop in Bash.
Print 0 through 99, each on a separate line.


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: