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

Batch rename extension of all files in a folder, in the example from .txt to .md
Same thing using bash built-in features instead of a sub-shell.

check open ports (both ipv4 and ipv6)
Check open TCP and UDP ports

Compute the average number of KB per file for each dir
Use this to find identify if dirs mostly contain large or small files.

tar via network

Browse shared folder when you're the only Linux user
Under Ubuntu smbclient is part of the samba package. With the version I use (3.0.28a) cd-ing into folders with spaces in the name is a drag. You have to put the folder name in quotes: smb: \Shared\> cd "Marketing and PR"

website recursive offline mirror with wget
website recursive offline mirror with wget

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

print indepth hardware info
wanna know something about your hardware? how about EVERYTHING?? then this should do ya well

Make changes in .bashrc immediately available
You may want to just use the shortcut "." instead of "source"

dd with progress bar and remaining time displayed


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: