1830503 Members
2540 Online
110006 Solutions
New Discussion

Space

 
Prabhu_7
Frequent Advisor

Space

i got an unix ID (BTS)

When i login using this , the default (home) directory is /u/bts

now i need to know how much space has been allocated for BTS.
how to do this ?

i'm trying df, but it displays lot of other stuffs too.

please let me know how to find out space allocated only for BTS.
11 REPLIES 11
Pete Randall
Outstanding Contributor

Re: Space

Not sure what BTS is, but anyway, try the du command:

du -sk /u/bts



Pete



Pete
Bill Douglass
Esteemed Contributor

Re: Space

bdf ./u/bts

will show you the amount allocated to the filesystem your home directory is on, as well as the amount free.

If quotas are enabled, then quota -v will show your account limits.
Jim Mallett
Honored Contributor

Re: Space

Your best bet is going right to the Admin and asking him, because he could have Disk Quotas turned on.

df, bdf, du are all tools that will tell you how much space the file system /u/bts resides on has.

Jim
Hindsight is 20/20
Darren Prior
Honored Contributor

Re: Space

Hi,

Unless you have quotas enabled, your user will be able to use as much space is available in /home, ie a bdf /home will show you what's available. Of course this space is shared with the other users who have home dirs under /home.

regards,

Darren.
Calm down. It's only ones and zeros...
James R. Ferguson
Acclaimed Contributor

Re: Space

Hi:

You can summarize your utilizatino in 1024-byte blocks with:

# du -ks /u/bts

If disk quotas are enforce for you, do:

# quota -v uid|username

...that is, "quota -v' followed by your account ('bts') or your uid.

Regards!

...JRF...

S.K. Chan
Honored Contributor

Re: Space

If quota is set on this user account "bts" then you can use just issue ..
$ quota -v
and it'll report the usage in this format ..
Disk quotas for bts (uid ???):
Filesystem usage quota limit timeleft files quota limit timeleft
If quota is not set you can check what's the size of the filesystem "bts" is on by running..
$ cd
$ bdf .
Prabhu_7
Frequent Advisor

Re: Space

$ du -sk /u/bts_prod
47052 /u/bts_prod

So is that mean only 47052 bytes allocated for this BTS ID ?

Please let me know in detail.All i want is to find out the total space allocated for BTS ID.

$ quota -v
Disk quotas for user bts_prod (uid 1541): none

attaching output of df command.
my home directory is /u/bts_prod
S.K. Chan
Honored Contributor

Re: Space

No .. du gives you the disk usage, not how much is allocated to "bts". The output means /u/bts_prod is currently using about 47MB of the disk space. Since you do not have disk quota set up your limit would be the FS limit. So just run ..
$ bdf .
in your home directory or run ..
$ bdf /u/bts_prod
from anywhere and look at the column "avail". That shows the amount of disk space (in KBytes) available to you and everyone else (if any) that are on this filesystem.
Elena Leontieva
Esteemed Contributor

Re: Space

$ du -sk /u/bts_prod
47052 /u/bts_prod
The above means that 47052KB are used by /u/bts_prod directory tree

You share the space with everybody who is using /nfsfs/u mount point
Darren Prior
Honored Contributor

Re: Space

Hi,

Your du command shows that ~47Mb is in the home dir of bts. This is space that has been used.

regards,

Darren.
Calm down. It's only ones and zeros...
Caesar_3
Esteemed Contributor

Re: Space

Hello!

If you use quota then: quota -v
If no quota then: bdf

Caesar