[root@achappan htdocs_8085]# find . -type f | wc -l
14626
[root@achappan htdocs_8085]#Explanation:
find . -type f finds all files ( -type f ) in this ( . ) directory and in all sub directories, the filenames are then printed to standard out one per line.This is then piped | into
wc (word count) the -l option tells wc to only count lines of its input.Together they count all your files.

0 comments:
Post a Comment