HeatWare.net header image
HeatWare.net
TwitterRSSEmail
  • Home
  • Windows
    • Windows 8
    • Windows 7
    • Windows Vista
    • Windows XP
  • Linux/Unix
  • Mac
  • Mobile
    • Android
    • iOS
    • Phones (Help / Resources)
  • Software / Programming
    • Free Software
    • Programming – General
    • PHP
    • Ruby/Rails
    • Quality Assurance (QA)
    • Software – General
    • Software Help
    • Databases
  • Cool Websites
  • Other
    • Deals & Bargains
    • News
    • Video Games
    • Hardware
    • Electronics
  • About

0 comments / February 9, 2011 / sood / Linux/Unix

Linux – How to find the number of files in a folder?

This seems like a pretty simple piece of information to ask for, but then why is there no intuitive way for Linux novices to accomplish this? In Windows command-line, the output of the dir command includes the number of files and the number of folders in the current directory. Well, here are some ways you can do it in Linux…

Find the number of files in the current and all sub-directories

find . -type f | wc -l

Find the number of files in the current directory

find . -maxdepth 1 -type f | wc -l

Related Posts

  • How to Find Files Owned by Group(s) in Linux
  • How to Find Files Owned by Users(s) in Linux
  • How to compare 2 files using 'diff' in Linux
  • Linux 'find' to list files less than or greater than a certain size
  • How to create a large number of files in Linux (thousands or millions)

Linux/Unix

0 comments… add one
Cancel reply

Leave a Comment

Recent Posts

  • Why You Should Consider Diving Apps
  • How to Buy a Smartphone that Fits Your Budget
  • How to Overcome Frustrating PDF Stress
  • Convert PDF to Word: Easy, Reliable and Quality Conversion
  • PDF to Excel App ­ – A New Way of Handling Tricky Documents

Recent Comments

  • Foo on PostgreSQL: How to reload config settings without restarting database
  • Sharon Wilson-Smith on 9 Signs Your Smartphone Needs a Highly Durable Case
  • Mitja on Why You Should Consider Diving Apps
  • Nasir Haider on How to create a large number of files in Linux (thousands or millions)
  • Kes on How to see active SQL queries and open connections in Postgres?

Tags

ACSLS Android Cell Phones Cool Software Cool Websites Databases Facebook File System Free Software G2x Galaxy S5 Hot Deals iOS iPhone ISO LG Linux Linux/Unix Mac Mobile mysql OpenStack OS X PHP Postgres PostgreSQL Printers Programming ruby Samsung Galaxy S6 Shell Smartphones Sun T-Mobile Tips Tips & Tricks Ubuntu Unix Virtualization VMWare Windows Windows 7 Windows 8 Windows Vista Windows XP

Latest Tweet

Follow @HeatwaredotNet

SP
@HeatwaredotNet

  • Why You Should Consider Diving Apps https://t.co/Is41cdUv2I #diving-apps
    about 2 years ago

All Categories

Other Links

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Copyright © 2015 — HeatWare