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