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

List every docker's name, IP and port mapping

list all hd partitions
Only one command and not dependant on full read access to the devices.

Count number of files in a directory
Just want to post a Perl alternative. Does not count hidden files ('.' ones).

hanukkah colored bash prompt
blue and yellow colored bash prompt for a Hanukkah celebration on your box

Identify name and resolution of all jpgs in current directory

Get a list of ssh servers on the local subnet
--open -sV is not needed if you are only looking for hosts with 22 open

Postpone a command [zsh]
When writing on the command line of zsh, by pressing Alt+q the command will be cleaned, and you can insert another one. The command you were writing will be recorder, and pasted on the prompt immediately after the "interrupting" command is inserted.

list files in mtime order
Simple but useful; list files in the current directory in mtime order. Useful if you've been working on something and then take a day or two off.

convert .bin / .cue into .iso image
bchunk [-v] [-p] [-r] [-w] [-s]

Top 10 Memory Processes (reduced output to applications and %usage only)
Top 10 Memory Processes (reduced output to applications and %usage only)


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: