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

Show memory stats on Nexenta/Solaris

Chronometer in hour format
Shorter and faster...

Count the number of deleted files
It does not work without the verbose mode (-v is important)

Paste OS X clipboard contents to a file on a remote machine
Redirects the contents of your clipboard through a pipe, to a remote machine via SSH.

Show apps that use internet connection at the moment. (Multi-Language)

Get absolut path to your bash-script
Another way of doing it that's a bit clearer. I'm a fan of readable code.

Delicious search with human readable output
You can install filterous with $ sudo apt-get install libxslt1-dev; sudo easy_install -U filterous

Count Files in a Directory with Wildcards.
Remove the '-maxdepth 1' option if you want to count in directories as well

Get a process's pid by supplying its name

List pr. command in megabytes sum of deleted files that are still in use and therefore consumes diskspace


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: