how to: List all files more than 1mb?
Hi ya all
I need to list all of the files in my home directory that are bigger than 1mb. my best guess is ls -sh | grep....... Any help would be great ta |
i need it to recursivly search through sub dirs
|
Code:
find $HOME -size +1M Code:
find $HOME -size +1M -exec ls -sh \{\} \; |
you are better off using "find"
the man page will help man find |
thanks
but when i run either of those commands i get find: invalid -size type `M' |
You have old version of the findutils package. Either upgrade it (newest is 4.2.20) or specify the size in kilobytes (+1024k).
|
Thank you that works a treat.
I run up2date would that not keep findutils up to date (no pun intended) |
All times are GMT -5. The time now is 11:12 PM. |