Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Just Joined!
    Join Date
    Mar 2010
    Posts
    8
    Hi,


    Please Any help on this

  3. #3
    Linux Newbie
    Join Date
    Mar 2010
    Posts
    121
    You can use `du -s' to get the size of a directory in kilobytes.

  4. #4
    Just 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!!

  5. #5
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...