HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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
Occasional Visitor

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