find

interesting options I ran into with find

-type = specifies what's being looked for e.g. f = regular files, d = directory

-size = allows to specify a desired size, 
  can be c for bytes

so to look for all zero length files this works:
$ find -type f -size 0

No comments:

Post a Comment