delete all files in ubuntu which size is 0kb

to delete the files

find . -type f -size 0b -delete

Use the Find command to find files by size and print file names to standard output.

find . -type f -size 0b -print



Leave a Reply