Wednesday 4 November 2020

CODING / LINUX / WINDOWS How to find and list zero byte files in Windows and Linux

How to find and list zero byte files in Windows and Linux

Windows

This will create a list.txt file containing all the zero-byte files found within the current execution folder and all its subdirectories. If you want them on screen, simply remove the > list.txt at the end.

Linux

Since I made it for Windows, I thought it could do the same with Linux. Here’s the one-liner:

Again, if you want them on screen, remove the > list.txt at the end.

 

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Blog Archive