Sponsored Content
Top Forums UNIX for Dummies Questions & Answers can I limit the size of a directory? Post 302157901 by DukeNuke2 on Sunday 13th of January 2008 02:06:18 PM
Old 01-13-2008
try something like "du -sk *" inside the directory... an the size limitation can only be done by root (quota) or a user with explicit permissions to do it (by using rbac in solaris for example).
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Limit size of the file

How do I limit size of a file to 1 MB or something like that under Linux? (4 Replies)
Discussion started by: _hp_
4 Replies

2. UNIX for Advanced & Expert Users

File Size Limit

Hi, I have a problem writing or copying a file 2GB or larger to either the second or third disk on my C8000. I've searched this forum and found some good information on this but still nothing to solve the problem. I'm running hpux 11i, JFS3.3 and disk version 4 (from fstyp) on all 3 disks. ... (2 Replies)
Discussion started by: HaidoodFaulkauf
2 Replies

3. UNIX for Dummies Questions & Answers

Limit Folder Size

Is there a way to limit a certain folder size(e.g. Documents, Desktop)? :) (2 Replies)
Discussion started by: tisdmin
2 Replies

4. Linux

Limit directory size

Hello I want to limit the size of a directory; so a user cant copy more staff inside it then 5 Giga for example.. eg. /nfs/temp/jhon size can not increase more that 5Gb I havnt found anything on the net. Is there a way to do it? (2 Replies)
Discussion started by: jredx
2 Replies

5. UNIX for Advanced & Expert Users

logrotate size limit

Hi i configured log rotate for a specific file. /var/log/sauer i configured create a file in logrotate.d # cat /etc/logrotate.d/sauer #this is a logrotate configuration file for msu_ng logs /var/log/sauer { rotate 5 size=1M daily compress ... (5 Replies)
Discussion started by: modcan
5 Replies

6. UNIX for Advanced & Expert Users

file size limit?

hi, how can I find out what the limit of a file size is on unix? thanks (6 Replies)
Discussion started by: JamesByars
6 Replies

7. Shell Programming and Scripting

Limit on a File size.

Hi All, I want to store 32KB of file in Oracle DB into CLOB field. I am not able to insert more than 32KB of file into CLOB. So i want to put a limit on the file size. I am using k shell. My file size will dynamically increase its size, i want to check the file size if it is more than 32KB... (1 Reply)
Discussion started by: rajeshorpu
1 Replies

8. UNIX for Dummies Questions & Answers

Directory size limit

Hey everyone I'm trying to limit the size a directory can be under Solaris 10. I can find plenty of guides to do it for user home directories, ut what I'm after is an absolute limit, regardless of the user. For example: I want /export/example/ to never pass say 5 GB, no matter what user is... (3 Replies)
Discussion started by: goodvikings
3 Replies

9. Shell Programming and Scripting

How to delete some of the files in the directory, if the directory size limits the specified size

To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
Discussion started by: shaal89
0 Replies

10. AIX

Limit directory Size in AIX

Hello I have a disk mounted on my AIX server and inside the disk, I want to create 3 directories with max size limit, so that the directories can be limited to pre-defined size. Eg: My total disk size is 350 GB and I want to limit dir1 to max of 100 GB, dir 2 to 75 GB and dir 3 to 60 GB and... (3 Replies)
Discussion started by: karumudi7
3 Replies
FS_QUOTA(1)						       AFS Command Reference						       FS_QUOTA(1)

NAME
       fs_quota - Displays the quota used in the volume containing a directory or file

SYNOPSIS
       fs quota [-path <dir/file path>+] [-help]

       fs q [-p <dir/file path>+] [-h]

DESCRIPTION
       The fs quota command displays the percent of quota consumed in the volume that contains each specified directory or file.

       To display more detailed information about the volume and the partition it resides on, use the fs examine and fs listquota commands.

       To set volume quota, use the fs setquota or fs setvol command.

CAUTIONS
       Currently, the maximum size of a volume is 2 terabytes (2^31 bytes).

OPTIONS
       -path <dir/file path>
	   Names each file or directory for which to display the quota consumed in its parent volume. Partial pathnames are interpreted relative
	   to the current working directory, which is also the default value if this argument is omitted.

       -help
	   Prints the online help for this command. All other valid options are ignored.

OUTPUT
       The output reports the percent of volume quota used, in the following format:

	  <percent>% of quota used.

EXAMPLES
       The following command lists the percent quota used of the volume housing the current working directory:

	  % fs quota
	  17% of quota used.

       The following command lists the percent quota used of both the volume housing the current working directory's parent directory and the
       volume housing the directory /afs/abc.com/usr/smith:

	  % fs quota -path .. /afs/abc.com/usr/smith
	  43% of quota used.
	  92% of quota used.

PRIVILEGE REQUIRED
       The issuer must have the "r" (read) permission on the ACL of the root directory of the volume that houses the file or directory named by
       the -path argument, and "l" (list) permission on the ACL of each directory that precedes it in the pathname.

SEE ALSO
       fs_examine(1), fs_listquota(1), fs_setquota(1), fs_setvol(1)

COPYRIGHT
       IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.

       This documentation is covered by the IBM Public License Version 1.0.  It was converted from HTML to POD by software written by Chas
       Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.

OpenAFS 							    2012-03-26							       FS_QUOTA(1)
All times are GMT -4. The time now is 11:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy