Solved

managing my hard drive in linux

Posted on 2006-07-06
5
243 Views
Last Modified: 2013-12-03
hi guys,
i have a linux box with two 120 gig hard drives,
today i noticed that my /home/ directory is 97% full which is impossible,
i am pretty sure something is eating up all the space, could be a log file or some backup files that is wasting all the space,
what is the easiest way for me to findout what is taking all the space,
for example is there a way to sort by size to see what is wasting it all?
ex: sort by size ( for folders ) to see which folder is taking all the space or ...?
any help is appreciated.
0
Comment
Question by:djsoltan
  • 2
5 Comments
 
LVL 27

Accepted Solution

by:
Nopius earned 250 total points
ID: 17055404
Run:
cd /home
du -s * | sort -r -k 1 -n

It takes a lot of time (linux should scan every subdirectory).
Then go into most sized directory (at the top) and repeat.
0
 
LVL 16

Assisted Solution

by:gurutc
gurutc earned 250 total points
ID: 17059446
If you're running a gui like Gnome or KDE, you can use kdirstat which gives you a graphical listing of file and folder sizes and types:

 http://kdirstat.sourceforge.net/

Good Luck,
gurutc
0
 
LVL 16

Expert Comment

by:gurutc
ID: 17599619
Cool with me - gurutc
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now