03-01-2001
du
lists how much disk space is used by a file or a directory(as well as subdirectory)in 1K blocks(default).
man du for more info
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi, say i have the following directory structure a/b/c/d...
can i do df -kt /a/b/c/d and the output will gives me the total space of the directory space in d? or the output will just be the total space of the parent directory a.
hope its clear.. (2 Replies)
Discussion started by: yls177
2 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
Hello again;
I have a directories and subdirectories in my current directory and i wanna to find the directories( and subdirectories ) which are larger than what user enters as first parameter.
find . -type d -size +"$1"c -print > directories.dat
I used this command and i am not sure it is... (19 Replies)
Discussion started by: redbeard_06
19 Replies
4. Solaris
Hi,
We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB?
I have seen this before we an Oracle temp file... (6 Replies)
Discussion started by: sparcman
6 Replies
5. UNIX for Dummies Questions & Answers
find . -type d -print 2>/dev/null|awk '!/\.$/ {for (i=1;i<NF;i++){d=length($i);if ( d < 5 && i != 1 )d=5;printf("%"d"s","|")}print "---"$NF}' FS='/'
Can someone explain how this works..??
How can i add directory size to be listed in the above command's output..?? (1 Reply)
Discussion started by: vikram3.r
1 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. Shell Programming and Scripting
I use du -sk command to find the size of the directory but when i use the result of 'du -sk' into if statement its throwing error.. Could u solve with this..? (14 Replies)
Discussion started by: shaal89
14 Replies
9. 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
10. 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
LEARN ABOUT HPUX
cacheinfo
CACHEINFO(5) AFS File Reference CACHEINFO(5)
NAME
cacheinfo - Defines configuration parameters for the Cache Manager
DESCRIPTION
The cacheinfo file defines configuration parameters for the Cache Manager, which reads the file as it initializes.
The file contains a single line of ASCII text and must reside in the /etc/openafs directory. Use a text editor to create it during initial
configuration of the client machine; the required format is as follows:
<mount>:<cache>:<size>
where
<mount>
Names the local disk directory at which the Cache Manager mounts the AFS namespace. It must exist before the afsd program runs. The
conventional value is /afs. Using any other value prevents traversal of pathnames that begin with /afs (such as pathnames to files in
foreign cells that do use the conventional name). The -mountdir argument to the afsd command overrides this value.
<cache>
Names the local disk directory to use as a cache. It must exist before the afsd program runs. The standard value is /usr/vice/cache,
but it is acceptable to substitute a directory on a partition with more available space. Although the Cache Manager ignores this field
when configuring a memory cache, a value must always appear in it. The -cachedir argument to the afsd command overrides this value.
<size>
Specifies the cache size as a number of 1-kilobyte blocks. Larger caches generally yield better performance, but a disk cache must not
exceed 90% of the space available on the cache partition (85% for AIX systems), and a memory cache must use no more than 25% of
available machine memory.
The -blocks argument to the afsd command overrides this value. To reset cache size without rebooting on a machine that uses disk
caching, use the fs setcachesize command. To display the current size of a disk or memory cache between reboots, use the fs
getcacheparms command.
EXAMPLES
The following example cacheinfo file mounts the AFS namespace at /afs, establishes a disk cache in the /usr/vice/cache directory, and
defines cache size as 50,000 1-kilobyte blocks.
/afs:/usr/vice/cache:50000
SEE ALSO
afsd(8), fs_getcacheparms(1), fs_setcachesize(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 CACHEINFO(5)