Searching for file in UNIX

How to search a file in a directory having sub directories having size more than 10MB?

Questions by anandvoona

Showing Answers 1 - 6 of 6 Answers

You can used du command for this.
In your home directory execute following command.
du -sh *
This will list all the directories with the memory used by them.
By having a look at this listing you ll be able to see which directory is taking more than 10 MB.

  Was this answer useful?  Yes

arun

  • Jul 17th, 2011
 

find . -type f -size +10M

  Was this answer useful?  Yes

debabrata

  • Jul 29th, 2016
 

are u sure ? is it working?

  Was this answer useful?  Yes

Paras Rehan

  • Aug 25th, 2016
 

find /directory -xdev -size +echo 1024*1024*10 | bcc -ls

  Was this answer useful?  Yes

Pankaj

  • Nov 17th, 2016
 

find -maxdepth 2 -size +10M -type d -print

  Was this answer useful?  Yes

reshma

  • Jul 27th, 2017
 

find . -type f -size +10M -exec ls -lh {} ;

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions