User Tools

Site Tools


how_to_count_all_the_files_in_a_directory

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
how_to_count_all_the_files_in_a_directory [2017/06/14 07:25] walkeradminhow_to_count_all_the_files_in_a_directory [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 9: Line 9:
     find . -type f | wc -l     find . -type f | wc -l
 \\  \\ 
-The <color #ed1c24>-type f</colorc>means files+The <color #ed1c24>-type f</color> means files
 \\  \\ 
 \\  \\ 
Line 15: Line 15:
     find . -type d | wc -l     find . -type d | wc -l
 \\  \\ 
-The <color #ed1c24>-type d</color>cmeans directories. <color #ed1c24>Please Note:</color> The directory you are searching in is counted, so even with no sub directories, the count will be 1.+The <color #ed1c24>-type d</color> means directories. <color #ed1c24>Please Note:</color> The directory you are searching in is counted, so even with no sub directories, the count will be 1.
 \\  \\ 
 \\  \\ 
how_to_count_all_the_files_in_a_directory.1497421555.txt.gz · Last modified: 2023/03/09 22:35 (external edit)