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

Count files beneath current directory (including subfolders)

Terminal - Count files beneath current directory (including subfolders)
find . -type f | wc -l
2009-01-23 17:19:32
User: root
Functions: find wc
16
Count files beneath current directory (including subfolders)

Alternatives

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

my version

echo $((`ls -l |wc -l`-1))

Comment by Mamay 414 weeks and 1 day ago

I have been looking this for quite some time. I was always unable to count files beneath current directory. Most importantly, this code includes sub folders that is actually the query. Coding is very important but it is also important to share resources like these to help other software engineers to learn from it. Beginners who are lucky to get job in leading firms like https://www.ingic.ae/software-development/ can get a lot of help with these resources. Moreover, it can also assist experts who are out of practice in it. There are a lot of specialists who are focusing on one aspect and might forget the basics. So sharing of codes and resources is very important.

Comment by AstridMoller 3 weeks ago

[url=http://www.adidasnmdsales.us/][b] Adidas NMD[/b][/url]

[url=http://www.adidasnmdsales.us/][b] Adidas NMD R1[/b][/url]

[url=http://www.adidasnmdsales.us/][b] NMD[/b][/url]

[url=http://www.nike-airmax90.com/][b] Nike Air Max[/b][/url]

[url=http://www.nike-airmax90.com/][b] Buy Nike Air Max Shoes Shopping[/b][/url]

[url=http://www.nike-airmax90.com/][b] Air Max 90[/b][/url]

[url=http://www.nike-airmax90.com/][b] Shoes Air Max[/b][/url]

[url=http://www.running-shoes.top/][b] Running Shoes[/b][/url]

[url=http://www.running-shoes.top/][b] New Balance Original[/b][/url]

[url=http://www.running-shoes.top/][b] New Balance Walking Shoes[/b][/url]

[url=http://www.running-shoes.top/][b] New Balance Shoes[/b][/url]

[url=http://www.running-shoes.top/][b] New Balance Running Shoes[/b][/url]

[url=http://www.running-shoes.top/][b] Skechers Women's[/b][/url]

[url=http://www.starboots.us/][b] StarBoots[/b][/url]

[url=http://www.starboots.us/][b] KOBE KD9 LeBron14[/b][/url]

[url=http://www.michael-kors-bags.us/][b] Michael Kors [/b][/url]

[url=http://www.michael-kors-bags.us/][b] Cheap Michael Kors Handbags[/b][/url]

[url=http://www.yeezy-outlet.us/][b] Yeezy Online[/b][/url]

[url=http://www.yeezy-outlet.us/][b] Yeezy boost 350[/b][/url]

[url=http://www.yeezy-outlet.us/][b] Adidas Yeezy[/b][/url]

[url=http://www.asics.us.com/][b] Asics[/b][/url]

[url=http://www.asics.us.com/][b] Asics Running Shoes[/b][/url]

[url=http://www.asics.us.com/][b] Asics Gel Kayano[/b][/url]

[url=http://www.coach-online.us/][b] Coach[/b][/url]

[url=http://www.coach-online.us/][b] Coach Outlet[/b][/url]

[url=http://www.coach-online.us/][b] Coach Handbags[/b][/url]

[url=http://www.timberland-outlets.org/][b] Timberland [/b][/url]

[url=http://www.timberland-outlets.org/][b] Timberland Shoes [/b][/url]

[url=http://www.timberland-outlets.org/][b] Timberland Boots [/b][/url]

[url=http://www.sunglasses--oakley.us/][b] Oakley [/b][/url]

[url=http://www.sunglasses--oakley.us/][b] Oakley Eyewear [/b][/url]

[url=http://www.sunglasses--oakley.us/][b] Oakley Sunglasses Shopping [/b][/url]

[url=http://www.sunglasses--oakley.us/][b] Oakley Sunglasses [/b][/url]

[url=http://www.jordan-air.us/][b] Air Jordan [/b][/url]

[url=http://www.jordan-air.us/][b] Discounted-Nike Discounted Air Jordan [/b][/url]

[url=http://www.adidasyeezy.org][b] Adidas Yeezy [/b][/url]

[url=http://www.adidasyeezy.org][b] Yeezy Shoes [/b][/url]

[url=http://www.adidasyeezy.org][b] Yeezy Boost 750 [/b][/url]

[url=http://www.adidasyeezy.org][b] Yeezy Boost 350 V2 [/b][/url]

[url=http://www.adidasyeezy.org][b] Yeezy [/b][/url]

Comment by sevenclock 2 weeks and 5 days ago

Your point of view

You must be signed in to comment.