ls -lR / |sort +4nr |more
-rw-r--r-- 1 root system 927909409 Jan 27 06:05 check_printq.log
-rw-r--r-- 1 patrol system 619666036 Jan 27 19:54 param.hist
This gives the size of each file, but not which dir the file is under.
It wuld be great if it gives like:
1200.21 /
3.2 fileA
2.7 fileB
2.4 fileC
.... etc ....
You might want to adjust the grep to ensure that it is only the /proc directory that is ignored and doesn't ignore any subordinate directories called proc
root:/> find / -ls|awk '$11 !~ /^\/proc/'|sort +4nr
find: 0652-019 The status on /proc/400824 is not valid.
root:/> find / -type f -ls | sort +4nr | more
sort: 0653-657 A write error occurred while sorting.
It seems |sort takes time and timed out.
Any way to get around it?
From the looks of the strings in the "sort" binary, it might be writing scratch files there. Since "sort" is reporting the error, that seems a likely cause.
- Rod
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+
Wish you could view posts with a fixed font? Got Firefox & Greasemonkey?Give yourself the option.
With severqal tries, I realized that it is not quite possible to check sizes of EACH files under dirs under / with command lines. It seems that the only solution avail would be to run customized scripts. Your inputs were very helpful though..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.