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? |
Hello lwang3rock, welcome to LQ,
you should use du for the /home directory, not only for your ~/ directory. Try Code:
du -ahc /home |
What says
Quote:
|
Quote:
|
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? |
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. |