What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again.

Delete that bloated snippets file you've been using and share your personal repository with the world. 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.

Get involved!

You can sign-in using OpenID credentials, or register a traditional username and password.

First-time OpenID users will be automatically assigned a username which can be changed after signing in.

Universal configuration monitoring and system of record for IT.

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:



May 19, 2015 - A Look At The New Commandlinefu
I've put together a short writeup on what kind of newness you can expect from the next iteration of clfu. Check it out here.
March 2, 2015 - New Management
I'm Jon, I'll be maintaining and improving clfu. Thanks to David for building such a great resource!

Top Tags



Psst. Open beta.

Wow, didn't really expect you to read this far down. The latest iteration of the site is in open beta. It's a gentle open beta-- not in prime-time just yet. It's being hosted over at UpGuard (link) and you are more than welcome to give it a shot. Couple things:

  • » The open beta is running a copy of the database that will not carry over to the final version. Don't post anything you don't mind losing.
  • » If you wish to use your user account, you will probably need to reset your password.
Your feedback is appreciated via the form on the beta page. Thanks! -Jon & CLFU Team

quickly rename a file

Terminal - quickly rename a file
mv filename.{old,new}
2009-03-02 02:28:55
User: leonza99
Functions: mv
quickly rename a file


There is 1 alternative - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

That's one of the best commands ever!

Comment by lonecat 399 weeks and 4 days ago

It is but note - only works in BASH.

Also, same can be used for cp, mkdir and most other file operations.

Comment by kernel01 179 weeks and 1 day ago


Comment by zirubak 86 weeks and 6 days ago

Inexpensive natural leather handbags are an easy way to load your own equipment specifications. They can be realistic, elegant and best of all, they can be affordable. Of course, you should look for a bit for top level synthetic leather handbags available. However a little effort in no way affects any person if you end up with a terrific handbag in the end, all this appears to be worth the cost.While you are able to seek out affordable synthetic leather bags as a result of actual shopping, shopping on the web is so easier. In contrast to garments, there isnt even the issue involving being unsure of the proper dimension. Search inside convenience your current family area or maybe when your employer thinks you happen to be operating. The best spot to do a total search would need to be a looking area. Some sort of buying neighborhood would possibly come with an extensive selection of bags to choose from therefore you would not essentially must stop by all the personal as well as real shops from the manufacturers that suits you. You could potentially just pick a shopping group and it also gives you finish entry to different models as well as companies around the world. This can be one of the best period preserving methods doing work for individuals searching for inexpensive leather handbags quicklyA purchasing community can be valuable if you're obtaining the handbag as a present on the table. If you are a male that http://www.hermesbeltsbirkinkellybag.co.uk/ has a sweetheart whom really likes handbags and are naive in relation to the woman flavor, the particular purchasing group has to be your brand-new best friend. These kind of neighborhoods are generally packed to your top with skilled customers who'd desire to help you find out your current friends taste in handbags. This is applicable for all you girls out there who really can not pick the best handbag on her own. Your looking communitys people will let you pick the right. As well as the correct won't actually must suggest the costliest 1.You might still select a fantastic high-quality handbag which will have already been very costly from list price. But if you possess truly became a member of the actual purchasing group, the particular price reduction will change the unreasonably costly bag to your lifeless cheap buckskin handbag. The particular specific people discount rates are found in just about all looking residential areas, nevertheless some are much more specialized in certainly than the others. If you are looking for the right purchasing area, ensure that you acquire as much out of it since you purchased it for.Coming time for a budget leather handbags, folks who wants discover some thing to your liking for the searching neighborhood themselves, you can always use it to get directions for the closest real as well as on the internet settlement sales. Many of them are great from maintaining data associated with as soon as these things occur. In reality, odds are should you have became a member of the correct buying neighborhood, you might not should get this opportunity previously.

Comment by stephanieg915 1 day ago


Comment by sguerra376 13 hours ago

Your point of view

You must be signed in to comment.