Nguyễn Vân Anh
New member
How do I find empty files in Linux?
Answer
Method # 1: Find and delete everything with find command only
Answer
Method # 1: Find and delete everything with find command only
- find /path/to/dir -empty -type d -delete.
- find /path/to/dir -empty -type f -delete.
- find ~/Downloads/ -empty -type d -delete.
- find ~/Downloads/ -empty -type -f -delete.