1753331 Members
5306 Online
108792 Solutions
New Discussion юеВ

Re: Command for file

 
SOLVED
Go to solution
Eli Daniel
Super Advisor

Command for file

like seeing the larger file within a filesystem through a command.
Please help
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: Command for file

What do you consider "larger file"? You can always use 'find' with the '-size' option. See the find man page for details.
Fabian Brise├▒o
Esteemed Contributor
Solution

Re: Command for file

Hello eli.
You could try:
find /tmp -size +10000 -print

This command will find all file larger than 10,000 bytes in filesystem /tmp
Knowledge is power.
Dineshbabu Kandallu
New Member

Re: Command for file

Hi,

Please use the following command which will give you the output of the largest file under the given hierarchy...

find / | xargs ls -ld | sort -nrk5 | more

Regards,
Dinesh
Ishwar_1
Frequent Advisor

Re: Command for file

Daniel,

If you are planning to check for the biggest files within a filesystem you need to use the command

find "filesystem name" -xdev -size "value" -print

Hopes this information will lead you to your answer

Thanks
Ishwar
Eli Daniel
Super Advisor

Re: Command for file

thanks