next up previous contents index
Next: 10.1.2 /usr/local in Red Up: 10.1.1 Overview of the Previous: The /usr/local Directory

The /var directory

Since the FSSTND requires that you be able to mount /usr read-only, any programs that write log files or need spool or lock directories probably should write them to the /var directory. The FSSTND says /var is for

``... variable data files. This includes spool directories and files, administrative and logging data, and transient and temporary files.''

The following directories should be subdirectories of /var:

/var
  |- log
  |- catman
  |- lib
  |- local
  |- named
  |- nis
  |- preserve
  |- run
  |- lock
  |- tmp
  +- spool
      |- at
      |- cron
      |- lpd
      |- mail
      |- mqueue
      |- rwho
      |- smail
      |- uucp
      +- news

System log files such as wtmp and lastlog go in /var/log. The /var/lib directory also contains the RPM system databases. Formatted man pages go in /var/catman, and lock files go in /var/lock. The /var/spool directory has subdirectories for various systems that need to store data files.



Red Hat Software