LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   the size of home directory (https://www.linuxquestions.org/questions/linux-newbie-8/the-size-of-home-directory-4175438323/)

lwang3rock 11-22-2012 02:14 PM

the size of home directory
 
[blizzard1 ~]$ df -h /h/lwang
Filesystem Size Used Avail Use% Mounted on
gecko.corp.opsware.com:/fs02/fs02/home/lwang
2.0T 1.9T 50G 98% /h/lwang
[blizzard1 ~]$ du -ah
215G ./olive1/olive1_1/olive1-flat.vmdk
215G ./olive1/olive1_1
215G ./olive1
8.0K ./.ssh/known_hosts
8.0K ./.ssh
215G .
[blizzard1 ~]$ du -ahc
215G ./olive1/olive1_1/olive1-flat.vmdk
215G ./olive1/olive1_1
215G ./olive1
8.0K ./.ssh/known_hosts
8.0K ./.ssh
215G .
215G total

the df shows that my home directory has 2T, and it has used 98%. I don't know where the 98% has been used. The du shows that I only used 215G.
Can somebody explain to me?

markush 11-22-2012 02:17 PM

Hello lwang3rock, welcome to LQ,

you should use du for the /home directory, not only for your ~/ directory. Try
Code:

du -ahc /home
Markus

business_kid 11-22-2012 02:29 PM

What says
Quote:

df -h

gdejonge 11-22-2012 02:30 PM

Quote:

Originally Posted by lwang3rock (Post 4835032)
Filesystem Size Used Avail Use% Mounted on
gecko.corp.opsware.com:/fs02/fs02/home/lwang
2.0T 1.9T 50G 98% /h/lwang

I hope you are aware that your home directory is on a network mount. So all bets are off about what is using the disk space. You need to check the machine that is hosting your home directory to find out about the disk usage.

lwang3rock 11-22-2012 05:56 PM

df vs. du
 
df reports how much free disk space is available for each mount you have. It is not what I thought. I thought it shows how much total space, available space I have in my home directory. it was wrong.
so how do I check how much total space I have for my home directory using linux command?
do I have to log on to the server gecko.corp.opsware.com to find out it?

TobiSGD 11-22-2012 06:21 PM

If there are no quotas set up on the server, limiting the space per user, the available space is what df reports, it is just that it can be used by other users with their /home directories on the same mount.


All times are GMT -5. The time now is 04:12 AM.