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. |
|
 |
03-30-2007, 02:31 AM
|
#1
|
|
Member
Registered: Jan 2006
Location: taiwan
Posts: 156
Rep:
|
The / directory is full
The / directory is 100% used now , but I am sure what I have done that made it full , can advise how can I know what large file is in / directory ? how can I know the size of each directory ?
p.s. I try to check with "top" but nothing found .
|
|
|
|
03-30-2007, 02:39 AM
|
#2
|
|
Member
Registered: Jan 2003
Location: EU (UK)
Distribution: Ubuntu 10.x, Fedora 9, OpenSuSE 11.3, Mythbuntu (Don't know it? Try - it rocks!)
Posts: 225
Rep:
|
Use the find command;
# find / -type f -size +20000k
(Change the +20000k to whatever size you want to look for.)
|
|
|
|
03-30-2007, 02:43 AM
|
#3
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,702
|
top is for processes and cpu usage. it's about as much use as a shrew in a tuxedo here. you want to look at the du command to see how much disk space is being used by what directories. run a command like "du -xh --max depth=1 /" and that will show you the usage of all directories in the first level of the / filesystem that shoudl get you going. if you need to narrow it down further, just change / to /tmp etc...
|
|
|
|
03-30-2007, 05:42 AM
|
#4
|
|
LQ Newbie
Registered: Jan 2007
Posts: 24
Rep:
|
Hello Sunhui,
Please use the following command to check the size of each directory :
# du -sh <dir-name> (/tmp,/var,etc)
Thanks and Regards
AJAZ
|
|
|
|
03-30-2007, 05:55 AM
|
#5
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,702
|
Quote:
|
Originally Posted by ajaz_javeed
Hello Sunhui,
Please use the following command to check the size of each directory :
# du -sh <dir-name> (/tmp,/var,etc)
Thanks and Regards
AJAZ
|
i said virtually the same thing 3 hours ago... 
|
|
|
|
03-30-2007, 12:11 PM
|
#6
|
|
Senior Member
Registered: Sep 2003
Posts: 3,171
Rep: 
|
Quote:
|
Originally Posted by Unknown_User
Use the find command;
# find / -type f -size +20000k
(Change the +20000k to whatever size you want to look for.)
|
OP didn't specify distro.
I have in the past seen postfix malfunction and send emails to root reporting the malfunction (which were kept in the queue because postfix was malfunctioning). One of these came out every 60 seconds and over a period of time filled the HD with a couple of million messages which remained queued.
The point of this? Use find to establish the status of not merely files but directories too:
find / -type d -size +20k
will pick these up and could identify the problem.
|
|
|
|
| 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 02:21 PM.
|
|
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
|
|