
find:ai:d6a87
find all files with 0 bytes in all folder and subfolders
$ find . -type f -size 0 -exec ls -l {} \; -exec echo {} \;
try on your machine
This command will find all files with 0 bytes in the current directory and its subdirectories. It will then display detailed information about each file using the 'ls -l' command, followed by printing the file path using 'echo'. The output will be displayed in the terminal.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.
Questions that are answered by this command:
- find all files with 0 bytes in all folder and subfolders ?