How can I display all files greater than 10k bytes in my current directory and it\'s subdirectories.
Tried ls -size +10k but that didn\'t work.
ls -size +10k
You may use ls like that:
ls -lR | egrep -v '^d' | awk '$5>10240{print}'
Explanation:
ls -lR # list recursivly egrep -v '^d' # only print lines which do not start with a 'd'. (files)
only print lines where the fifth column (size) is greater that 10240 bytes:
awk '$5>10240{print}'