Solved

managing my hard drive in linux

Posted on 2006-07-06
5
242 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
Comment Utility
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
Comment Utility
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
Comment Utility
Cool with me - gurutc
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In this article, I provide some information on storage disks which go into calculations that will help you figure out how much Input/output Operations Per Second (IOPS) your disk subsystem can deliver. To effectively size & tune up applications l…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

763 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

12 Experts available now in Live!

Get 1:1 Help Now