dapurhosting.com Blog for Tech

August 2, 2018

Delete Empty File or 0b File

Filed under: Server — dh @ 3:19 am

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

find . -type f -size 0b -print

substitute -print with -delete to delete the files rather than print them on screen.

find . -type f -size 0b -delete

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress