Common Unix log files:
File Name Content Monitoring Method
/Etc/rc. log/etc/rc running records read text files,
/Var/adm/syslog. Log note the prompt information and corresponding
Var/adm/SW/*. Log Software Installation Log date, analyze related problems.
/Var/adm/wtmp user logon information can be viewed using the last command
/Var/adm/btmp User Logon failure information can be viewed using the lastb command
/Var/SAM/log/samlog Sam log
/Var/spool/mqueue/syslog sendmail log
/Etc/shutdownlog shutdown Information
/Usr/ADM/diag/logxxx
/Var/adm/Nettl. log * network logs are handled by HP engineers
/Var/adm/crash core dump file is the responsibility of HP engineers
File cleanup:
1. Log File cleanup
Run the following command to clear the log file:
#> File name
Or
# Cat/dev/null> file name
Note: Make sure the file is useless before clearing the file.
2. Cleanup of other files
Core File
# Find/-name core-exec RM {}
Large file
Search
# Find/-Name (-size + n)-print
N = the file size is Bytes/512 bytes.
# Du-S *
Delete
# Rm file name