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

Rename files in batch

mkdir & cd into it as single command
The biggest advantage of this over the functions is that it is portable.

Watch how fast the files in a drive are being deleted
This can be useful when a large remove operation is taking place.

Create a mirror of a local folder, on a remote server
Create a exact mirror of the local folder "/root/files", on remote server 'remote_server' using SSH command (listening on port 22) (all files & folders on destination server/folder will be deleted)

Extracts PDF pages as images

Print a row of characters across the terminal
Pure Bash This will print a row of characters the width of the screen without using any external executables. In some cases, COLUMNS may not be set. Here is an alternative that uses tput to generate a default if that's the case. And it still avoids using tr. $ printf -v row "%${COLUMNS:-$(tput cols)}s"; echo ${row// /#} The only disadvantage to either one is that they create a variable.

a function to find the fastest DNS server
http://public-dns.info gives a list of online dns servers. you need to change the country in url (br in this url) with your country code. this command need some time to ping all IP in list.

colorize comm output
It just colorizes the line based on if it has 0, 1 or 2 tabs at the beginning of the line. Won't work so well if lines already begin with tabs (too bad comm doesn't have an option to substitute \t for something else). Don't forget comm needs input files to be sorted. You can use a shortcut like this with bash: comm

Best kayak chiang
Just how to best outfit your fishing kayak can rely upon they type of fishing you're performing and the conditions you'll encounter. Little streams and seas need different concerns than offshore huge game fishing for instance. Whatever form of fishing you want to do, kayak fishing has some distinctive factors as the space is limited. It will be vital that you prioritize the most crucial things that you'll require to gain access to most regularly, and have them within simple reach. Some fishermen like to help keep it simple and hold the minimal level of gear: some like to hold something that they might probably need. There are several standard components that will raise the fish-ability of a kayak, or ensure it is more angler-friendly. Seats: Different than the usual exercise and your fishing equipment I'd claim that a high quality seat are at the the top of priority list. If you intend to spend your day fishing in comfort, you need to purchase a kayak with an excellent seat, or install one yourself. Pole Members: These are easy and useful areas to carry your rods securely while paddling, fishing or trolling. Some kayaks result from the factory with flush mounted rod slots or rod cases mounted on variable brackets. Some kayak retailers may modify your kayak by rigging pole cases for you really to match the wants of one's fishery: you may prefer to platform your own. There are numerous different models and types of rod holders from which to choose 1. Remove support rod holders are reduced in profile and give you a clear deck, so are not as likely becoming a range catcher (especially when travel fishing). There are plugs readily available for travel rods, and extensions for mainstream rods. Both could be removed when not in use. 2. Flexible pole members that are attached to the terrace are fully variable up and down, and provide 360-degree rotation. They come in types for spin/bait throwing or fly rods. Some may be removed when maybe not in use, which really is a great function if you are fly fishing. 3. There many other choices for mounting pole cases to seats, dairy crates and several other custom rigs. 4. Whatever the kind of pole holders you utilize, you ought to connect a pole lead therefore you may not lose them overboard. When you have to create a surf entry or exit, you must keep or secure your supports so they're maybe not lost in case of Best kayak chiang. Point Programs: These let you not just to stay in one spot where you would like to fish, but and also to fish a big area in an organized way. If you are sight fishing, blind throwing, or trolling you will need to cover the location as thoroughly that you can, and the correct anchor system will enable you to do so. You need to begin with an point basket as the base for the point system: a constant line working via a pulley on your own bow to a pulley on your stern with a snap land on each conclusion, and mounted on a band in the middle. You are able to fix your anchor line to or through the band, allowing you to modify your anchor point from any stage along the entire length of the kayak.

list files recursively by size


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: