03-02-2005
Use df -k
first and then find files having larger sizes ....
Rank top 10 files having larger size increased their size very recently and inform system adminstrators.
There are lot of ways to do that.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to check the size of a log file. If the size is anything but zero, I need to send an email. I'm using this syntax:
SIZE=0
VAR1=`wc -c $DIRNAME/$FILENAME1 | awk -F" " '{print $1}' `
echo $VAR1
if
then
do something such as send an email
fi
I know that the file is indeed... (15 Replies)
Discussion started by: ssmith001
15 Replies
2. Shell Programming and Scripting
Hi My test.log file looks like this:
0 190_GSTV_HUX_003QISCGSK026_error070322_115331917.log
34 190_GSTV_HUX_003QISCGSK026_error070117_151311385.log
12 190_GSTV_HUX_003QISCGSK026_error070117_151230001.log
2 190_GSTV_HUX_003QISCGSK026_error070117_101010001.log
0... (19 Replies)
Discussion started by: kiran1112
19 Replies
3. Shell Programming and Scripting
Hi,
I'm currently trying to write a script that checks a log file for certain errors. Once checked it then records the filesize in another file. All this is fine, my problem is that the next time I do my error check I only want to check from previously recorded filesize to the end of file. I'm... (2 Replies)
Discussion started by: stuck1
2 Replies
4. Shell Programming and Scripting
I want to check the files in particular directory are more that 0 Bytes i.e, Non zero byte file. The script should print a msg if all the files in that directory are empty( 0 Byte). (2 Replies)
Discussion started by: lathish
2 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I am new to unix scripting, please help me in completing this exercise,
I have a scenario as follows,
1. i have a text file(snapshot.txt) consisting of directory names, and file
size separated by comma as shown below:
snapshot.txt data:
... (1 Reply)
Discussion started by: G.K.K
1 Replies
6. Shell Programming and Scripting
Hello
I have srv RHEL5, file system UTDM (EMC DiskXtender Unix/Linux File System Manager 3.5 & EMC Centera).
it all works under the scheme: have disk is formatted with a file system UTDM, drive open network - NFS, it write data, then migrate the data in the repository - EMC Centera.
There are... (0 Replies)
Discussion started by: moskovets
0 Replies
7. Shell Programming and Scripting
Hi
I am doing a FTP process through which I am copying a file from my local server to Remote server. After this I want to check the size of the file
Below is my program:
LOCALDIR=/batch/ediprocess
REMOTESERVER=test.appl.com
REMOTEPATH=batch/ftpTest
LOGIN=px
PASSWORD=abcd
ftp -n... (3 Replies)
Discussion started by: shanth_chandra
3 Replies
8. Red Hat
Hi Team,
I am a new bie to unix and want to check a directory for a files with extension *.doc exceeding a specific file size limit,and will give me a buffer ooutput as below
I used below command,
find . -name \*.doc -size +3k -printf "|%p |%k KB"
which resulted as,
./ABC_sw_high.doc ... (1 Reply)
Discussion started by: lisha.ahuja
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am a SAP- ABAP programer , i have only little knowledge of Unix.
My issue is i have a list of files which are in internal table.
I want to create a script which consist of all these files and in one go i can check in the unix server about there existance and there file size.
Can... (2 Replies)
Discussion started by: amitkumar.b2
2 Replies
10. UNIX for Dummies Questions & Answers
HI ,
How can I check if a file exists in a particular folder and it exists it size in greater than 0 kb.
Basically I am trying to write a script which will check if a file exists and if exists then it size is greater than 0 bytes (I am not looking for empty files it should have some data... (3 Replies)
Discussion started by: wangkc
3 Replies
LEARN ABOUT DEBIAN
cacheadm
cacheadm(1) ShapeTools cacheadm(1)
NAME
cacheadm - administer and configure AtFS derived object cache
SYNOPSIS
cacheadm [-Amax_cached_per_cacheattr] [-Nmax_cached_per_name] [-Tmax_total_cached] [-q] [-v] directories
DESCRIPTION
cacheadm provides control over the size of a derived object cache. You may set the maximum total number (T) of derived files to be stored,
the maximum number of derived files per name (N) and the maximum number of derived files with the same name and the same caching attribute
(A). Called without any options, cacheadm returns the actual sizes of the derived object caches in the named dirctories. An empty list of
directories causes cacheadm to operate on the current directory.
The relationship of the three cache size values must always be T >= N >= A. The caching attribute mechanism is described on the af_cache(3)
manual page. When calculating your caching sizes you should keep in mind that you may set the total size (T) to any value but your cache
will never grow bigger than N*number_of_names. Number_of_names is the number of source object histories in your directories, where derived
objects may be compiled from. If you set T to an astronomic value, the cache adapt it's size to the number of source histories automati-
cally.
In the current implementation, the caching sizes can only be increased. Reduction of the maximum cache size is only possible when the cache
is empty. Hence you have to clean your cache (atfsrepair -C (1)) first if you want to shrink its size.
OPTIONS
-A max_cached_per_cacheattr
Set the maximum number of derived files with the same name and the same caching attribute to be stored. Default is 1.
-N max_cached_per_name
Set the maximum number of derived files with the same name to be stored. Default is 3.
-T max_total_cached
Set the total maximum number of derived files to be stored in the derived object cache. Default is 64. -q Quiet operation. Sup-
presses any output to stdout. This option does not affect error messages (stderr).
-v Output version identification string.
SEE ALSO
chgrp(1), chmod(1), atfsrepair(1), af_cache(3)
AUTHOR
Andreas.Lampen@cs.tu-berlin.de
AtFS-1.71 Thu Jan 13 15:30:55 1994 cacheadm(1)