Control Growing Files
• /var/adm/wtmp &• /etc/security/failedlogin there exist two wayes
1- cat /dev/null > /var/adm/wtmp
2- > /etc/security/failedlogin
• /var/adm/sulog
• /var/spool/*/*
1. stopsrc -s qdaemon
2. rm /var/spool/lpd/qdir/*
3. rm /var/spool/lpd/stat/*
4. rm /var/spool/qdaemon/*
5. startsrc -s qdaemon
• $HOME/smit.log
• $HOME/smit.script
• $HOME/websm.log
• $HOME/websm.script
This command will print the number of blocks used by each directory and file in the root.
find . -type d -exec du -s {} \;
You can search for "large" files by cd'ing to a suspect directory ( or even starting at /, if you must), and typing
find . -size +5000 -print
will print the names of all files over 5,000 blocks (2,560,000) bytes. This may find many, many files, so you might want to refine it with larger numbers. You might also want to sort it:
find / -size +2000 -exec ls -s{} \; | sort -nr | more
to print all files that change in current directory at last 24 hours
find . -mtime 1 -print
1- cat /dev/null > /var/adm/wtmp
2- > /etc/security/failedlogin
• /var/adm/sulog
• /var/spool/*/*
1. stopsrc -s qdaemon
2. rm /var/spool/lpd/qdir/*
3. rm /var/spool/lpd/stat/*
4. rm /var/spool/qdaemon/*
5. startsrc -s qdaemon
• $HOME/smit.log
• $HOME/smit.script
• $HOME/websm.log
• $HOME/websm.script
This command will print the number of blocks used by each directory and file in the root.
find . -type d -exec du -s {} \;
You can search for "large" files by cd'ing to a suspect directory ( or even starting at /, if you must), and typing
find . -size +5000 -print
will print the names of all files over 5,000 blocks (2,560,000) bytes. This may find many, many files, so you might want to refine it with larger numbers. You might also want to sort it:
find / -size +2000 -exec ls -s{} \; | sort -nr | more
to print all files that change in current directory at last 24 hours
find . -mtime 1 -print