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
Solved

managing my hard drive in linux

Posted on 2006-07-06
5
245 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

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 article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
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…

856 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