Linux find hidden files in path
If you want to find any hidden files (Files with a dot first), you can use this command:
1 |
find ./ -name '.*' |
You can change ./ to be /var/www to find any hidden files in /var/www
Kenneth Qvistgaard Dalbjerg, IT Konsulent i århus
If you want to find any hidden files (Files with a dot first), you can use this command:
1 |
find ./ -name '.*' |
You can change ./ to be /var/www to find any hidden files in /var/www
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 |
Sidste kommentar