Solved

managing my hard drive in linux

Posted on 2006-07-06
5
250 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
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…

696 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