how_to_count_all_the_files_in_a_directory
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
how_to_count_all_the_files_in_a_directory [2016/08/04 15:47] – walkeradmin | how_to_count_all_the_files_in_a_directory [2017/06/14 07:26] – walkeradmin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== How to count all the files in a directory ====== | ====== How to count all the files in a directory ====== | ||
+ | <color darkorange> | ||
+ | |||
+ | ---- | ||
+ | Updated <color darkorange> | ||
+ | ---- | ||
+ | To find all of the files in a folder or directory, use: | ||
\\ | \\ | ||
+ | find . -type f | wc -l | ||
+ | \\ | ||
+ | The <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | To find all the sub directories, | ||
+ | find . -type d | wc -l | ||
+ | \\ | ||
+ | The <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ---- | ||
+ | Old | ||
+ | ---- | ||
+ | |||
\\ | \\ | ||
ls -l -R /path | wc -l | ls -l -R /path | wc -l |
how_to_count_all_the_files_in_a_directory.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1