/var:
- It is a standard sub-directory of the root directory in Linux and other Unix-like operating systems that contains files to which the system writes data during the course of its operation.
- It contains variable data like system logging files, mail and printer spool directories.
- Some portions of /var are not shareable between different systems. For instance, /var/log, /var/lock, and /var/run. Other portions may be shared, notably /var/mail, /var/cache/man, /var/cache/fonts, and /var/spool/news.
- It contains a number of sub-directory. These sub-directories is designated by a forward slash (/). Among the other directories that are usually installed by default in the root directory are /bin, /boot, /dev, /etc, /home, /initrd, /lib, /lost+found, /misc, /mnt, /opt, /proc, /root, /sbin, /tmp ,/local, /log, /mail, and /usr....etc
- Its contents are not included in /usr because situations can occur in which it is desired to mount /usr as read-only, such as when it is on a CDROM or on another computer. /usr, which is generally the largest directory (at least on a newly installed system) and is used to store application programs, should only contain static data.
- Explanation of some sub-directories:
- /var/cache (contains cached data from application programs).
- /var/games (contains variable data relating to games in /usr).
- /var/lib (contains dynamic data libraries and files).
- /var/lock (contains lock files created by programs to indicate that they are using a particular file or device).
- /var/log (contains log files).
- /var/run (contains PIDs and other system information that is valid until the system is booted again).
- /var/spool (contains mail, news and printer queues).
References:
Comments
Post a Comment