Size
Find files based on size
c
bytes
k
kilobytes
M
megabytes
G
gigabytes
w
2-byte words
b
512-byte blocks
find / -a -size 10c
Exactly 10 bytes
find / -a -size +10k
More than 10 kilobytes
find / -a -size -10M
Less than 10 megabytes
find / -a -size 0c
Empty files (size 0 bytes).
find / -a -size +10M -size -50M
Between 10 and 50 megabytes.
Find large files:
Find large directories:
Finds files larger than the size of the current directory (using du to calculate total size):
Last updated
Was this helpful?