Fixing a user-defined file system overflow
Use this procedure to fix an overflowing user-defined file system.
- Remove old backup files and core files. The following example removes
all *.bak, .*.bak, a.out, core, *,
or ed.hup files.
find / \( -name "*.bak" -o -name core -o -name a.out -o \ -name "...*" -o -name ".*.bak" -o -name ed.hup \) \ -atime +1 -mtime +1 -type f -print | xargs -e rm -f
- To prevent files from regularly overflowing the disk, run the skulker command
as part of the cron process and remove files that are unnecessary
or temporary.
The skulker command purges files in /tmp directory, files older than a specified age, a.out files, core files, and ed.hup files. It is run daily as part of an accounting procedure run by the cron command during off-peak periods (assuming you have turned on accounting).
The cron daemon runs shell commands at specified dates and times. Regularly scheduled commands such as skulker can be specified according to instructions contained in the crontab files. Submit crontab files with the crontab command. To edit a crontab file, you must have root user authority.