The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 / directory
Author: khaledhu 
Date:   08-02-06 09:27

Hi there...

i have problem on file system / directory, i am trying to write some thing on /etc/mail but i got write faild, the df command said that the root (/) directory is 107%, i am trying to free space but i cannot find where exactly i can found these files, this server is working as Mail Gateway server and runs Mailscanner and SpamAssassin and sendmail, so please any idea about where is the files should be freed on / directory

many thanks in advance

Khaled Hussein

Reply To This Message
 
 Re: / directory
Author: Dan 
Date:   08-02-06 13:29

Try this command:

du -hd1c

h = human readable sizes
d1 = just give me the totals for depth 1
c = give me a total at the end

This will give you the amount of space used in each directory in the current working directory. For exampe:

[root@ngaio:/] # du -hd1c
2.0K ./.snap
1.5K ./dev
14K ./tmp
8.5G ./usr
41M ./var
1.6M ./etc
2.0K ./cdrom
2.0K ./dist
898K ./bin
64M ./boot
3.2M ./lib
270K ./libexec
2.0K ./mnt
2.0K ./proc
3.2M ./rescue
92K ./root
3.8M ./sbin
8.6G .

That's from a FreeBSD 6.0 box.

--
Webmaster

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org