1. Space management
Monitor the growth of file systems
Document to control continuous growth
Manage space use of file systems
Controlling user disk Use
Clean up file system fragmentation
Although the system can dynamically increase the file system, it is not automatic. The system administrator can check the status and usage of the file system through the monitoring tools. If the system does not have enough space, the system sends a message to the user "out of room". For example, you can use command DF to check file system usage.
2. Display disk space
The DF command displays information such as total file system space and available space
# DF
– I displays the number of I nodes that have been used, along with the I node usage rate.
–k indicates that the file system space shown is computed as a block of 1024 byte size.
–m indicates that the file system space shown is computed in blocks of M.
–g indicates that the file system space shown is computed in blocks of G.
3, to control the growth of the document
/var/adm/wtmp
/var/spool/*/*
$HOME/smit.log
$HOME/smit.script
$HOME/websm.log
$HOME/websm.script
/etc/security/failedlogin
/var/adm/sulog
The growth of the document should be regularly monitored and cleared.
/var/adm/wtmp,/etc/security/failedlogin,/var/adm/sulog, these files are the information that describes the user's login, which is reserved in the system.
The/var/spool directory saves some information about the messages that the printer files produce. Users can also clear this information by using the following command:
Stopsrc-s Qdaemon
rm/var/spool/lpd/qdir/*
rm/var/spool/lpd/stat/*
rm/var/spool/qdaemon/*
Startsrc-s Qdaemon
4. Skulker Tools
The Skulker command cleans up the file system by deleting unwanted or obsolete files.
The files to be deleted include
Files in/tmp directory
A.out file
Core file
Ed.hup file
Users can change the Skulker shell script file according to actual requirements
Skulker is usually defined in the crontab file of root, and the cron process activates every day
Use the/usr/sbin/skulker program to purge files. The following are some of the deleted files defined in the Skulker file, and the user can change the Skulker shell script file based on actual requirements.