How do I count large number of files in Linux?

Duyên Trương

New member
How do I count large number of files in Linux?
Answer
You can get a count of files and directories
with the tree program. Run the command tree | tail -n 1 to get the last line, which will say something like “763 directories, 9290 files”. This counts files and folders recursively, excluding hidden files, which can be added with the flag -a .
 

Tìm kiếm

Back
Top