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,293 of 30,566   
   vallor to Alan K.   
   Re: Disc analiyser figures   
   06 Oct 25 03:27:39   
   
   From: vallor@vallor.earth   
      
   At Sun, 5 Oct 2025 20:11:54 -0400, "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   
      
   The trouble with that is that running the du -Sx can be a fairly   
   expensive operation (depending on how much you keep on the partition in   
   question, of course), so you might want to save the entire output for   
   further inspection.   
      
   It's one of those things for which I like to keep multiple stages.   
   YMMV.   
      
   BTW, it's _so_ expensive on my fileserver that I run it less than once   
   a year there...   
      
   $ ll sorted.volume1.d.sizes   
   -rw-r----- 1 root root 902516082 Jul  7  2024 sorted.volume1.d.sizes   
      
   --   
   -v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090Ti 24G   
      OS: Linux 6.17.0 D: Mint 22.2 DE: Xfce 4.18   
      NVIDIA: 580.95.05 Mem: 258G   
      "Wisdom is knowing what to do with what you know."   
      
   --- 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