Networking Forums

Networking Forums > Computer Networking > Linux Networking > Find where diskspace is being used up most

Reply
Thread Tools Display Modes

Find where diskspace is being used up most

 
 
Allan Bruce
Guest
Posts: n/a

 
      01-09-2006, 12:11 PM
Is there a method or utility that I can use from the shell to scan my disk
partition and report where the largest files/directories are located? I
have only got about 300MB left on my disk but I dont know where the space is
being used up.

Thanks
Allan


 
Reply With Quote
 
 
 
 
Lew Pitcher
Guest
Posts: n/a

 
      01-09-2006, 12:20 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Allan Bruce wrote:
> Is there a method or utility that I can use from the shell to scan my disk
> partition and report where the largest files/directories are located? I
> have only got about 300MB left on my disk but I dont know where the space is
> being used up.


Try

du -a / | sort -nr | head -10

which will give the 10 largest files and directories (sorted in descending order
of size), or

du / | sort -nr | head -10

which will give the 10 largest directories (sorted in descending order of size) only



- --
Lew Pitcher
IT Specialist, Enterprise Data Systems,
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed are my own, not my employers')
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFDwmMxagVFX4UWr64RAqdJAJ41hxeZ6pekyj1aVl2GXA LSqJ/+tACg9Vxq
XFQuwitII+vH4zPa78bx63o=
=koRe
-----END PGP SIGNATURE-----
 
Reply With Quote
 
Davide Bianchi
Guest
Posts: n/a

 
      01-09-2006, 12:21 PM
On 2006-01-09, Allan Bruce <(E-Mail Removed)> wrote:
> Is there a method or utility that I can use from the shell to scan my disk
> partition and report where the largest files/directories are located? I
> have only got about 300MB left on my disk but I dont know where the space is
> being used up.


df will tell you which partition is most used, then you can use
ds to scan directory-per-directory.

Davide

--
They say never to buy a "0" release of software.
Windows 2000 has 3 of 'em.
-- A .sig spotted on an anti-Microsoft mailing list
 
Reply With Quote
 
Larry Finger
Guest
Posts: n/a

 
      01-09-2006, 12:23 PM
Allan Bruce wrote:
> Is there a method or utility that I can use from the shell to scan my disk
> partition and report where the largest files/directories are located? I
> have only got about 300MB left on my disk but I dont know where the space is
> being used up.
>
> Thanks
> Allan
>
>


Check 'man du'.
 
Reply With Quote
 
Giovanni
Guest
Posts: n/a

 
      01-09-2006, 12:26 PM
On 01/09/06 14:11, Allan Bruce wrote:
> Is there a method or utility that I can use from the shell to scan my disk
> partition and report where the largest files/directories are located? I
> have only got about 300MB left on my disk but I dont know where the space is
> being used up.



$ man du

Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
Registered Linux user #337974 <http://counter.li.org/>
 
Reply With Quote
 
Davide Bianchi
Guest
Posts: n/a

 
      01-09-2006, 12:29 PM
On 2006-01-09, Davide Bianchi <(E-Mail Removed)> wrote:
> ds to scan directory-per-directory.


s/ds/du/

Davide

--
They say never to buy a "0" release of software.
Windows 2000 has 3 of 'em.
-- A .sig spotted on an anti-Microsoft mailing list
 
Reply With Quote
 
Steve Horsley
Guest
Posts: n/a

 
      01-10-2006, 10:09 AM
Allan Bruce wrote:
> Is there a method or utility that I can use from the shell to scan my disk
> partition and report where the largest files/directories are located? I
> have only got about 300MB left on my disk but I dont know where the space is
> being used up.
>
> Thanks
> Allan
>
>

For a GUI tool, I rather like jdiskreport, a free download from
www.jgoodies.com, provided to prove by demonstration that java
applications CAN look good.

Steve
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't find DC CarlosAntenna Windows Networking 11 09-02-2005 07:36 PM
How Can I Find Out? K Broadband 19 08-19-2005 04:15 PM
Where can I find... Giuseppe Carmine De Blasio Windows Networking 3 02-06-2005 03:43 PM
Find my IP Jason Windows Networking 2 09-07-2004 12:57 PM
I cannot find what is going... Paul Smith Linux Networking 2 02-05-2004 02:24 AM



1 2 3 4 5 6 7 8 9 10 11