Results 1 to 5 of 5
Hi,
This is sushil just joined a company and have task in hand.
help me on this .. i have some 70-80 projects(Folder) with me, which gets updating now and ...
- 12-07-2011 #1Just Joined!
- Join Date
- Mar 2010
- Posts
- 8
limiting the space through script
Hi,
This is sushil just joined a company and have task in hand.
help me on this .. i have some 70-80 projects(Folder) with me, which gets updating now and than,
so i need a script which identify the size of each project and compare with 5 GB parameter ,as i want to set each project should have 5GB of space above that user should not able to write or update anything.
Please help me on this i do not want to use Quota here as i have UID and GID for all the projects same which was set by previous employee
Thanks in advance
- 12-07-2011 #2Just Joined!
- Join Date
- Mar 2010
- Posts
- 8
Hi,
Please Any help on this
- 12-07-2011 #3Linux Newbie
- Join Date
- Mar 2010
- Posts
- 121
You can use `du -s' to get the size of a directory in kilobytes.
- 12-08-2011 #4Just Joined!
- Join Date
- Mar 2010
- Posts
- 8
Thanks john for replying on this.
but the actual issue is how to setup a script to prohibit the excess of a folder after 5 GB of use!!
- 12-08-2011 #5
quotas.
Everything else is reinventing the wheel.
So yes: you would need to rethink the uid/gid.You must always face the curtain with a bow.


Reply With Quote