find: Include file size conditions (#848)

The units of the size command are not straight-forward. The default
file size unit is counter-intuitively 512-bit blocks. This patch
includes a cheat sheet for the ability to filter files based on its
size and the various units that are accepted by the find command.
This commit is contained in:
Devin Samarin 2018-11-07 14:57:17 -08:00 committed by chad d
parent 2bef29186d
commit ea1fff2e40
1 changed files with 8 additions and 0 deletions

View File

@ -33,6 +33,14 @@ find <path> <conditions> <actions>
-regex PATTERN
```
```bash
-size 8 # Exactly 8 512-bit blocks
-size -128c # Smaller than 128 bytes
-size 1440k # Exactly 1440KiB
-size +10M # Larger than 10MiB
-size +2G # Larger than 2GiB
```
```bash
-newer file.txt
-newerm file.txt # modified newer than file.txt