Evan
1
Hi all,
I'm working on Solaris and quite often I receive the alert message of file system at 90%.
I'd like to find which files caused this happens (at least the biggest files) with the following command:
find . -size +10000000c -exec ls -larth {} \;
This looks for every file in every fs ... I just want to check "/" fs or "/var/" etc...!
Any ideas?
Thank you very much for your support!
thegeek
2
-xdev is the option you are looking for, it seems.
man find
.....
.....
-xdev Don't descend directories on other filesystems.
Also, this could be a better version of finding 5 most biggest files:
find . -type f -exec ls -s {} \; | sort -n -r | head -5
Evan
3
Thank you very much thegeek, this fits exactly my needs.
Regards,
Evan
cd /
du -sk * | sort -rn |head
du -a /var | awk '$1 > 1000000 { print }' <--- not 1megabyte rather any files found larger than "7" digits.