LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Struggling with ls command (https://www.linuxquestions.org/questions/linux-newbie-8/struggling-with-ls-command-790661/)

razor7 02-21-2010 09:37 PM

Struggling with ls command
 
Hi folks, I need some help with the ls command...(sorry for the silly rookie question)

I need to search in "/" and all subdirectories, all files greather than 30 MB...

Thanks in advise!

evo2 02-21-2010 09:42 PM

You should use the "find" command for this. For example:

Code:

find / -size +30M
Evo2.

mattca 02-21-2010 09:42 PM

For that, the find command is probably better:

Code:

find / -size +30M

smeezekitty 02-21-2010 09:58 PM

The 'ls' command only lists files, it does not filter them.
You could probably do it with grep/sed/awk but its better to just use find.
@mattca,evo2: LOL Same thing @ the same minute.

razor7 02-21-2010 10:01 PM

Woooowww....incredible fast reply!...thanks a lot! mattca and evo2! worked as axpected!

Best regards!

mattca 02-21-2010 10:21 PM

haha, evo was ahead by a nose!


All times are GMT -5. The time now is 08:00 AM.