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:
parent
2bef29186d
commit
ea1fff2e40
8
find.md
8
find.md
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue