home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.mint      Looks pretty on the outside, thats it!      30,566 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 29,300 of 30,566   
   Dan Purgert to RobH   
   Re: Disc analiyser figures   
   06 Oct 25 10:02:20   
   
   From: dan@djph.net   
      
   On 2025-10-06, RobH wrote:   
   > On 06/10/2025 01:11, Alan K. wrote:   
   >> On 10/5/25 7:36 PM, vallor wrote:   
   >>> Good advice.   
   >>>   
   >>> There's also the -S option to du, which totals up   
   >>> usage in directories.  So:   
   >>>   
   >>> sudo du -Sx / > /tmp/d.sizes   
   >>>   
   >>> Then:   
   >>>   
   >>> sort -rn /tmp/d.sizes > /tmp/sorted.d.sizes   
   >>>   
   >>> head /tmp/sorted.d.sizes   
   >>>   
   >>> The "-x" in "du -Sx" means to stay on the same filesystem,   
   >>> so if /home is separate, you'll need to repeat the process   
   >>> there.   
   >>   
   >> Simplified without creating the file:   
   >>      sudo du -Sx / | sort -rn | head -20   
   >>   
   > Pardon me fore asking, but what do the 6 and 7 figure numbers mean on   
   > the left hand side when it lists the folders etc.   
      
   It's the file-size.  I *believe* it is in blocks on your drive; so the   
   numbering will be dependent on your filesystem (e.g. here I have 4K   
   blocks, so a 13K file shows as "4"; but if you have 512B blocks, it   
   would be 26).   
      
   --   
   |_|O|_|   
   |_|_|O| Github: https://github.com/dpurgert   
   |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1  E067 6D65 70E5 4CE7 2860   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca