www.delorie.com/gnu/docs/findutils/find_17.html   search  
 
Buy GNU books!


Finding Files

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.4 Size

Test: -size n[bckw]
True if the file uses n units of space, rounding up. The units are 512-byte blocks by default, but they can be changed by adding a one-character suffix to n:

b
512-byte blocks
c
bytes
k
kilobytes (1024 bytes)
w
2-byte words

The size does not count indirect blocks, but it does count blocks in sparse files that are not actually allocated.

Test: -empty
True if the file is empty and is either a regular file or a directory. This might make it a good candidate for deletion. This test is useful with `-depth' (see section 2.9 Directories) and `-exec rm -rf '{}' ';'' (see section 3.3.1 Single File).


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003