02-13-2012
i changed the command to 'du -sm' so its working..
"you are using -h option, if your directory size goes to 1 to 29 GB, then the above command will fail. Because you are checking it for MB and we are removing the human readable format in the end ( M or G or K )"
i dont understand this.. Sorry..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,everyone,
Can I use UNIX command to get a directory size in UNIX ?
I am developing a software using C in UNIX. How can I get the directory size?
Thanks
Harry (1 Reply)
Discussion started by: HarryHong
1 Replies
2. UNIX for Advanced & Expert Users
I want to find the which directory under a directory occupy the maximum size is there is any command to find please help (5 Replies)
Discussion started by: arunkumar_mca
5 Replies
3. Shell Programming and Scripting
I have two file in a Directory.I want a script which will compare the Size of Two file.
Can Anyone Help me on this:
linasplg11:/opt/dataout/kk/linasplg11 # cat size
-rwxrwxrwx 1 root root 16658 Jan 8 13:58 lina_IP_SIP_1231325621210.xml
-rwxr-xr-x 1 root root 16672 Jan 8 14:30... (1 Reply)
Discussion started by: Aditya.Gurgaon
1 Replies
4. Shell Programming and Scripting
hi,
i am new to this site.
i want to write a script to compare the file size of the files in the current dir with the files in the previous directory.
the files name will be same, but the filename format will be as xyzddddyymm.txt. the files will arrive with the month end date(i want to... (5 Replies)
Discussion started by: tweety
5 Replies
5. Red Hat
Hi,
I have two server , one linux and one unix .
I want to compare two different directry in them .
What command or tool I can use instead of search the dir one by one ???
thank (3 Replies)
Discussion started by: chuikingman
3 Replies
6. UNIX for Dummies Questions & Answers
hi everyone
my q is that i want to know what 's the reason behind the direcotry size in unix
like if i do
ls -ltr
in my home directory it will list all the files and directory .. then the
size of directory is either
512 or 1024 .. and every directory is containing files in... (2 Replies)
Discussion started by: aishsimplesweet
2 Replies
7. Shell Programming and Scripting
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
8. UNIX for Dummies Questions & Answers
I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms.
Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Discussion started by: jmgibby
2 Replies
9. UNIX for Beginners Questions & Answers
Hello guys,
Please i need to know the biggest files in my directory let's say$
>du -h | egrep 'M|G|G'
195M ./TMP
3.6M ./TP_DEC2012
146G .
But here the result it's giving me the biggest directory in the path.
Actually i want to know the biggest file in 146G .
Can anyone... (6 Replies)
Discussion started by: gillesi
6 Replies
10. UNIX for Beginners Questions & Answers
I am new at developing EXPECT scripts. I'm trying to create a script that will automatically connect to a several UNIX (sun solaris and HPUX) database server via FTP and pull the sizes of the listener/alert log files from specified server directory on the remote machines.
1. I want the script... (7 Replies)
Discussion started by: mikebantor
7 Replies
LEARN ABOUT REDHAT
fs_listquota
FS_LISTQUOTA(1) AFS Command Reference FS_LISTQUOTA(1)
NAME
fs_listquota - Displays quota information for a volume
SYNOPSIS
fs listquota [-path <dir/file path>+] [-human] [-help]
fs listq [-p <dir/file path>+] [-hu] [-he]
fs lq [-p <dir/file path>+] [-hu] [-he]
DESCRIPTION
The fs listquota command displays information about the volume containing each specified directory or file (its name, quota, and amount of
disk space used), along with an indicator of the percentage of space used on the host partition.
To display more information about the host partition, use the fs examine command.
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 a file or directory that resides in the volume about which to produce output. Partial pathnames are interpreted relative to the
current working directory, which is also the default value if this argument is omitted.
-human
Print space in a "human-readable" format. Instead of always printing space in kilobytes, show disk space in kilobytes, megabytes,
gigabytes, terabytes, or petabytes, as appropriate.
-help
Prints the online help for this command. All other valid options are ignored.
OUTPUT
The output displays information about the volume that houses each specified directory or file, in a tabular format that uses the following
headers:
Volume Name
The name of the volume.
Quota
The volume's quota in kilobytes, or the string "no limit" to indicate an unlimited quota.
Used
The amount of space used. If -human is not specified, this value is in kilobytes.
% Used
The percentage of the volume's quota that is used (the "Used" statistic divided by the "Quota" statistic, times 100).
Partition
The percentage of space used on the partition that houses the volume. Although not directly related to how much of the user's quota is
used, it is reported because a full partition can cause writing of data back to the volume to fail even when the volume has not reached
its quota.
EXAMPLES
The following example shows the output for the volume "user.smith":
% fs listquota -path /afs/abc.com/usr/smith
Volume Name Quota Used % Used Partition
user.smith 15000 5071 34% 86%
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_diskfree(1), fs_examine(1), fs_quota(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_LISTQUOTA(1)