07-05-2005
Hi,
do a du -sk * and you will see the size of each file and directory in kilobytes ,,,
Cheers
malcom
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I would really apprciate it if someone expert in shell, "shell guru" scripting can help me.
with a shell command how can I create directories and populate on basis of size.
Before I confuse you, let me tell you the scenerio.
We take hot database backup of oracle on disk, and... (0 Replies)
Discussion started by: amitoverseas40
0 Replies
2. UNIX for Dummies Questions & Answers
$ls -lrt mydir
total 12
drwxrwxrwx 2 nobody nobody 512 Aug 8 11:51 tmp
drwxrwxrwx 2 nobody nobody 4608 Jan 19 12:20 web.cache
$ ls -lrt mydir/web.cache/
total 0
$ ls -lrt mydir/tmp/
total 0
Can anyone explain me the above results? I know the o/p of ls, but this... (3 Replies)
Discussion started by: rahulrathod
3 Replies
3. Shell Programming and Scripting
hai,
i am new to unix scripting & learning unix scripting and doing some assignments....
i have an assignment as follows,
i want to check the size of the text file and .ext files in all directories,
if any one of them is greater than 100mb , i have to display those files..
... (2 Replies)
Discussion started by: G.K.K
2 Replies
4. Shell Programming and Scripting
Hi,
I am new to Unix.
I want to display top 10 folders by size.
I tried with
du -ksl * | sort -nr | head -10
command .But I am getting the following error
-bash: /usr/bin/du: Argument list too long
Can some one help me.
Thanks. (5 Replies)
Discussion started by: Satyak
5 Replies
5. Shell Programming and Scripting
Hi,
how to know the size of the files in the directory, exclusing the subfolder. ?
i tried du -h
du -sk
du -k
but its not giving.. (2 Replies)
Discussion started by: mail2sant
2 Replies
6. Shell Programming and Scripting
Hi ,
I am very new to unix as well as shell scripting. I have to write a script for the following requirement.
In a particular mount, have to list all the directories and sub directories along with size of the directory and sub directory in ascending order.
Please help me in this regard and many... (4 Replies)
Discussion started by: nmakkena
4 Replies
7. UNIX for Dummies Questions & Answers
Alright so I've tried a couple different things that at first glance, looked like they worked.
find . -maxdepth 5 -type d -daystart -mtime 1 | xargs du -h Which seems to ignore the previous commands such as depth and modified time.
find .. -maxdepth 2 -type d -daystart -ctime 1 | xargs... (8 Replies)
Discussion started by: Aussiemick
8 Replies
8. Shell Programming and Scripting
Hi guys,
i'm searching for a command, which gives me back all the directories which are greater than a particular size?
thx for helping so far :b:
guti (2 Replies)
Discussion started by: guti_rocks
2 Replies
9. UNIX for Advanced & Expert Users
Hi Gurus,
I know this sounds weird, We have encountered many incidents where some directories on several Solaris 10 boxes, will be converted to files with the same size. for example the file below :
-rw-r--r-- 1 rkadm redknee 5027399 Apr 15 00:02 dump
This was a directory created... (5 Replies)
Discussion started by: aladdin
5 Replies
10. Shell Programming and Scripting
Hello,
I'm trying to find top 5(highest) directories by size. I did something like du -sh * > $file
Where I can get all the size with respect to directories, but I need only top 5 directory from the file. How can I sort by size in the file and print top 5 sizes with the directory name???
... (3 Replies)
Discussion started by: pjeedu2247
3 Replies
LEARN ABOUT PHP
fs_examine
FS_EXAMINE(1) AFS Command Reference FS_EXAMINE(1)
NAME
fs_examine - Shows data about the volume containing a directory or file
SYNOPSIS
fs examine [-path <dir/file path>+] [-help]
fs exa [-p <dir/file path>+] [-h]
fs listvol [-p <dir/file path>+] [-h]
fs listv [-p <dir/file path>+] [-h]
fs lv [-p <dir/file path>+] [-h]
DESCRIPTION
The fs examine command displays information about the volume containing each specified directory or file, including its volume ID number,
quota and the percentage of its quota that is used.
This command provides the most information about a volume, but the fs listquota command displays similar information in tabular format, and
the fs quota command reports only the percentage of quota used.
To set volume quota, use the fs setquota or fs setvol command.
CAUTIONS
The partition-related statistics in this command's output do not always agree with the corresponding values in the output of the standard
UNIX df command. The statistics reported by this command can be up to five minutes old, because the Cache Manager polls the File Server for
partition information at that frequency. Also, on some operating systems, the df command's report of partition size includes reserved space
not included in this command's calculation, and so is likely to be about 10% larger.
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.
-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 the following format
Volume status for vid = I<volume ID> named I<volume name>
Current offline message is I<message>
Current disk quota is I<quota in kilobytes>
Current blocks used are I<volume size in kilobytes>
The partition has I<available partition> blocks available out of
I<partition size>
where the first line specifies the volume's ID number and name. The "Current offline message" line appears only if an administrator has
included the -offlinemsg argument to the fs setvol command. The remaining lines report, respectively,
o The volume's quota in kilobytes, or the string "unlimited" to indicate an unlimited quota.
o The volume's current size in kilobytes.
o The number of blocks available and total size of the host partition, both in kilobytes.
EXAMPLES
The following example shows the output for the volume "user.smith" and the partition housing it:
% fs examine -path /afs/abc.com/usr/smith
Volume status for vid = 50489902 named user.smith
Current maximum quota is 15000
Current blocks used are 5073
The partition has 336662 blocks available out of 4177920
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_listquota(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_EXAMINE(1)