
Determine how many files there are in the current folder/directory:
many ways ;)
1. list files and folders:
[root@server1]# du -a /folders/test | cut -d/ -f2 | sort | uniq -c | sort -nr
17616 data
2. list files and folders
[root@server1]# ls -Ra1 /folders/test|grep -v ...