Get the number of files in a directory

How to the number of files in a directory

ls | wc -l works well for me.

http://stackoverflow.com/questions/3702104/find-the-number-of-files-in-a-directory

Answered by harryxiyou.

Weiwei Jia

Weiwei Jia is a Ph.D. student in the Department of Computer Science at New Jersey Institute of Technology since 2016. His research interests are include storage systems, operating systems and computer systems.

Leave a Reply

Your email address will not be published. Required fields are marked *