Because of the data requirements, it is necessary to crawl and filter the data frequently for about 7 8 months. Changed the data on the machine, restarted, found "No space left on device"
Workaround:
1. Delete log directly (simple and rude):
Delete all logs: Find/var-type f-exec rm-v {} \; (The final semicolon is also part of the required command)
2. Manual Search
#df -H (View disk space and usage) #cd/#du -sh * (view file size) #rm -rf *.log #rm-rf *.bak#rm -RF logs/* #df- H
Another: Frequently used log files such as the following:
Transmission of Access-log record Http/web
acct/pacct Record user commands
activities of the Aculog record modem
btmp Record of failed records
Lastlog Records Recent successful login events and the last unsuccessful login
messages Logging information from syslog (some links to syslog files)
sudolog record commands with sudo
use of the Sulog record using the SU command
syslog logs information from a syslog (usually linked to a messages file)
utmp Record every user currently logged in
wtmp A user's permanent record of each login entry and exit time
Xferlog Record FTP session
Linux log cleanup