Thanks,in advance I want to remove all the zero size files in specified directory,can u tell me the command how to do it on Ubuntu OS.
Thanks' Mukthyar
Thanks,in advance I want to remove all the zero size files in specified directory,can u tell me the command how to do it on Ubuntu OS.
Thanks' Mukthyar
find . -size 0c -delete
removes all such files in the current folder.
cd DIRECTORY
find . -size 0
If you want to run a command on the files found (e.g. delete)
find . -size 0 -exec rm {} \;