Hide

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.
Hide

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:

Hide

News

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!
Hide

Top Tags

Hide

Functions

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

Recursive chmod all files and directories within the current directory

Terminal - Recursive chmod all files and directories within the current directory
chmod -R 774 .
2009-12-23 18:42:26
User: cfajohnson
Functions: chmod
-11
Recursive chmod all files and directories within the current directory

Alternatives

There is 1 alternative - vote for the best!

Terminal - Alternatives
find . -exec chmod 777 {} \;
find . -name "*" -print0 | xargs -0 -I {} chmod 777 {}
2010-10-11 19:05:41
User: aardvark4
Functions: chmod find xargs
-7

This will handle the case that the filename has spaces or other characters that need to be escaped.

find . -print -exec chmod 777 {} \;
2009-12-23 13:16:31
User: ringlerun
Functions: chmod find
-10

sometimes if directories are too deep, chmod -R fails... in those cases, a find comes in most handy :)

find | xargs chmod 777

Know a better way?

If you can do better, submit your command here.

What others think

This is the most efficient way. Why bother with using find?

Comment by markjx 327 weeks ago

If you're an enthusiastic shooter you then undoubtedly have purchased one particular or maybe more skilled video cameras which are top quality as well as quite expensive. An advanced qualified digital camera male or female when compared with your current digital cameras are usually worth a lot of money as soon as positioned in one particular location, this is why you don't want to take any chances both as soon as holding ones goods or maybe while transporting things in one place to the following. That is why when it comes to picking a photographic camera bag you need to be careful to make sure you find out that is the greatest fit on your cameras along with their functions.When picking a digicam bag first thing you'll want to take into consideration is in places you are going to be flying with you guessed it-your camera. As an example, in case you primarily http://www.hermesbeltsbirkinkellybag.co.uk/ want to make use of it with events such as loved ones get-togethers basically as a technique regarding obtaining pics pertaining to posteritys sake then your degree of safety isn't going to need to be while high enabling you to pay rather less. On the other hand, in the event you generally traveling with the digital camera in addition to consider photographs while trekking or playing any effective sports activities you will desire a photographic camera bag having internal extra protection that will be really worth spending more.In supplement, you have to contemplate how much real travelling you can be performing along with your digital camera in relation to selecting the best photographic camera bag. When the majority of your getting around is conducted automobile then your video camera will likely be primarily secured, but if you usually take flight on replicated events you'll need to contemplate defending the digital camera through transportation. You will discover particular video camera bags created just for soaring if you intend on examining ones cams and they are generally really worth expense when considering how much your digital cameras can be worth and how considerably a great air-port would prefer to.After you choose the amount of you got it may get destroyed in carry the next action you need to think about when selecting photographic camera bags is the way a lot of you'll need since this is most likely going to impact your finances for first time camera bags. By simply placing a budget you give yourself a parimeter while shopping that will aid assist you to affordable select the right digicam bag for each digicam remember the buying price of the digital camera that you are guarding with every invest in as increasing numbers of dollars should be dulled out and about pertaining to cameras of higher worth.At this time challenging specifics remote you can begin for you to browse on the net for your more different options being careful to look at materials that happen to be utilized for your camera bags along with what is employed to support your cameras in. Your main goal must be to receive the top rated digicam bag to suit your budget on the best price which can require some searching and may be well more than worth it ever since the final result will be best photographic camera safety you could trust.

Comment by stephanieg915 8 hours ago

Your point of view

You must be signed in to comment.