-
At times I have thse Oracle logfiles(listener etc) that grow like crazy and fill up a specific file system. I wanted to write a find command that lists which are the biggest files from the search path..so
/qbidora02/oracledba/find . -name ....... and list file names, sizes and time stamp. any ideas?
thanks
Jigar
"High Salaries = Happiness = Project Success."
-
how about find command with -exec combo ...
-
The -ls flag to find will list the same details as if you did a ls -l, but without addition flags the output is not much different than ls -lR.
The find command with AIX, and probably most other unixes, allows a size flag to list only files over a certain size.
Check the man pages for find. Also check the man pages for ls, recursive listings sorted by size might also be usefull.
--
Paul
-
You could also try something like
find . -type d | xargs du -sk
It will list the size of the files in a directory.
80073 .
1014 ./bin
1431 ./download
396 ./download/unzip
291 ./download/zip
744 ./download/software
10 ./work
3 ./work/library
115 ./old
114 ./old/file_mover
2 ./sql
1 ./perms
70 ./file_mover
2321 ./p_logs
32 ./tmp
2 ./tmp/ksh
1 ./tmp/rj
178 ./run_jobs
58 ./run_jobs/jobs
5 ./run_jobs/timing
5 ./run_jobs/scheds
128 ./sqr
2 ./sqr/sql
978 ./perltidy-20011020
295 ./perltidy-20011020/docs
1 ./suid
2277 ./unzip_test
3 ./fix_adp200_perms
1 ./ppl
1 ./ppl/setup
3 ./a
128 ./sqr2
2 ./sqr2/sql
865 ./rep
1121 ./ppl_pl
11 ./test
1 ./test/d
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|