Hello,
im doing regular search in files contents in around 25 linux file systems (mostly redhat, debian).,
i want to lower load on server by excluding folders which contains only system files and alot of files
Which linux folders contains most files?
I found i can exclude folders like this:
[QUOTE]find . -type f -name “searched phrasse” ! -path “./tmp/" ! -path "./var/log/”
[/quote]
the linux will entirelly skip above excluded directories, or it will go into them and search, but only mute listing? thx
i mainly want to relieve disk I/O operations, thats also why i added "/bin/nice -n 19 " before the find command
SIDE-NOTES:
when did: du -h /usr --max-depth=1
8.0K /usr/etc
38M /usr/sbin
16K /usr/usr
239M /usr/lib64 - 2 minutes to appear!
24K /usr/src
232M /usr/local - 2 minutes to appear!
685M /usr/share - 5 minutes to appear
24K /usr/X11R6
23M /usr/libexec
107M /usr/bin
218M /usr/lib - 2 minutes to appear!
8.0K /usr/games
9.8M /usr/include
2.0M /usr/kerberos
1.6G /usr
more about linux /usr