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

List just the executable files (or directories) in current directory

Terminal - List just the executable files (or directories) in current directory
ls *(.x)
2010-12-18 02:46:37
User: eikenberry
Functions: ls
List just the executable files (or directories) in current directory

With zsh.


There are 7 alternatives - vote for the best!

Terminal - Alternatives
ls -F | grep '*$'
ls -dF `find . -maxdepth 1 \( -perm -1 -o \( -perm -10 -o -perm -100 \) \) -print`
2009-02-05 16:59:38
User: wam
Functions: ls

Does an 'ls' on just the files and directories in the current directory with an execute bit turned on. This version will list directories. Just tack on "-type f" to the start of the find to omit listing directories and list only files.

Know a better way?

If you can do better, submit your command here.

What others think

It's safe to assume that you'll be not used to this company stadium? At this point try for distinctly produced shopping bags. Right away there is an opportunity to press your retailer label along with logo via custom printings on rucksack and then some. They are primarily amazing as you're able check-out the different plans and hues that you can get as a result of on the web destinations at only the press of the situation. Given that you need to prepare subsequently that's also handled by having a number of advisors which proved together with selections dependent upon ones thought. Thus, exactly why endure? Demand custom bag together with company logo that may be available in many plans at the most reduced cost and turn a website experience. Leather drawstring bookbag will be keen towards through a lot of for their loaded move forward. Pick the one particular you feel can be good within the wake involving reading thru a thorough assortment of accumulations. In some cases you'll find so many blended bags being offered or maybe bargain that happen to be regarding extraordinary earnings in your business. It truly is dependably far better to think about assorted places for importance along with good quality ahead of establishing demands for the purpose that you simply grab the best products in effective measures. Several mixes associated with rucksack receptive on-line are usually Black cowhide little back pack, Chemical lava drawstring bookbag, Taylor drawstring backpack, Deluxe passed tough harsh bathe book bag, and so on.Around the exclusive sorts of bags produced accessible, plain canvas bag bags are usually in the same manner renowned across the common wide open. These bankruptcies are not merely uncomplicated however in stylish apart from. Carry bags are a great versions, to adopt to your function place or even while you're on some sort of get-away. Many people arrive in a level of perfect hues along with classy and sophisticated outlines. http://www.hermesbeltsbirkinkellybag.co.uk/ These kind of bags within a way aid in supplying the ideal searches for any person. You may additionally program customized canvas handbag bags with regard to gatherings or maybe situations. So long as it can be discussed relevantly your impressive move forward it could actually bathtub about the visitors is only amazing. The ones who get this kind of bags will probably retailer this to get a substantial time period which is an image connected with inspiration combined with simplicity of use. By simply searching through several websites you find a crystal clear photo of you could possibly get and it also needs to be worth the income utilized. Websites have extraordinary management and rapid conveyance devices. What's more they r furthermore send out an example for the overview if perhaps wished. Accessible in an extensive variety of components and kinds these types of bags are best for swap implies, gatherings, discount special gifts, displays, matrimony bath areas and so on. The actual incorporated priority is perhaps you can alter bag bags more speedily and much easier making use of on the net devices as well as the D-Lab platform. All inside all you can depend upon this stuff to offer ones connection a fantastic image and also the indicate review value is just beautiful as they stick with the consumer for quit some time.

Comment by stephanieg915 18 hours ago

Your point of view

You must be signed in to comment.