Hi, I would like to know how I can find the file that weighs the most on my hard drive (and how much it weighs).
Thanks!
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Find heavier file on my operating system
-
- Posts: 1100
- Joined: 2016-01-07 12:25
- Has thanked: 5 times
- Been thanked: 16 times
Re: Find heavier file on my operating system
Great tool!
But, would it be possible with the command find or similar by the Terminal?
But, would it be possible with the command find or similar by the Terminal?
- sunrat
- Administrator
- Posts: 6412
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 116 times
- Been thanked: 462 times
Re: Find heavier file on my operating system
This will list files in CWD in size order:
Code: Select all
du -sh * | sort -hr
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Re: Find heavier file on my operating system
yes.Deblib wrote:Great tool!
But, would it be possible with the command find or similar by the Terminal?
-
- Posts: 1100
- Joined: 2016-01-07 12:25
- Has thanked: 5 times
- Been thanked: 16 times
Re: Find heavier file on my operating system
To expand on this a little, you can use find to do this but you will obviously need to do some filtering and/or sorting of the results to get the information you want.debiman wrote:yes.Deblib wrote:Great tool!
But, would it be possible with the command find or similar by the Terminal?
If you just want to largest file you could use sort and then tail to give only the first (or last depending on sort order) result, but this might use a lot of resources, especially if you are using find from the root of your system as it would sort ALL the results of find.