Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-09-2006, 02:16 PM
|
#1
|
|
Senior Member
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,109
Rep:
|
Check hard disk usage per directory
Hello to everyone  _
My hard disk now is full
I want to clean it a little but i need some software support. Do u know any cool programme that can show me how much disk space each folder uses? Any simple console command that can help me view directories and the disk space they consume..
|
|
|
|
10-09-2006, 03:14 PM
|
#3
|
|
Guru
Registered: Jan 2001
Posts: 24,128
Rep: 
|
I always cd into the directory I want to do a listing on and do:
du -sh *
This will give you the output of all the files and directories of the present working directory instead of printing off every single file and subdirectory.
For example, I want to see the sizes of ever directory in my home directory:
tricky@fs1:~$ du -sh *
4.0K Mail
187M archives
533M backup
9.8M downloads
28K perl
20M public_html
Without the -s in -sh, it will print every single file and subdirectory beyond, which just looks messy to me.
|
|
|
|
10-09-2006, 03:37 PM
|
#4
|
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,392
Rep:
|
You asked for a cool program ? Well, try kdirstat. It can show what are the big files/folders in graphical mode ! very cool...
|
|
|
|
10-09-2006, 03:55 PM
|
#5
|
|
Guru
Registered: Jan 2001
Posts: 24,128
Rep: 
|
Quote:
|
Originally Posted by marozsas
You asked for a cool program ? Well, try kdirstat. It can show what are the big files/folders in graphical mode ! very cool...
|
du is cool enough.. why download and install third party tools when bash has everything you need already.. 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:58 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|