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

A command to post a message to Twitter that includes your geo-location and a short URL.
A command to post a message to Twitter that includes your geo-location and a short URL. The link shortening service is provide by TinyURL, the geo-location service is provided by HostIP and the IP address lookup service is provided by AppSpot. This is an upgrade of an of one of my previous contributions: http://tinyurl.com/yd2xtzv.

Watch movies in your terminal
requires mplayer

Colorize matching string without skipping others
this is useful to highlight only some code without losing other lines (eg. software, logs, scripts)

Like top but for files
Like top, but for files

find files ignoring .svn and its decendents
for when find . -print | grep -v .svn | xargs doesnt cut it.

Find the process you are looking for minus the grepped one
preferred way to query ps for a specific process name (not supported with all flavors of ps, but will work on just about any linux afaik)

count of down available ips
avoid wc overload ;)

Find usb device in realtime
Using this command you can track a moment when usb device was attached.

Find the package that installed a command

Synchronise a file from a remote server
You will be prompted for a password unless you have your public keys set-up.


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: