You can use this command to get the list of the number of file in current directory
ls -1 ./ | wc -l
Or
ls -1 /var/log | wc -l
to get the number of files in /var/log
You can use this command to get the list of the number of file in current directory
ls -1 ./ | wc -l
Or
ls -1 /var/log | wc -l
to get the number of files in /var/log