ある日、仕事中にチャットで「/var ディレクトリってvariableなデータを格納しているから/varって言うらしいね。知らなかったよ~」とつぶやいたら、同僚から「ちなみにlinuxのディレクトリについて知りたい場合はman hierで分かるよ」と教えてもらった。
目から鱗で感動したので、メモっておく。
man hier
NAME
hier - description of the filesystem hierarchy
DESCRIPTION
A typical Linux system has, among others, the following directories:
/ This is the root directory. This is where the whole tree starts.
/bin This directory contains executable programs which are needed in single user mode and to bring the system up or repair it.
/boot Contains static files for the boot loader. This directory holds only the files which are needed during the boot process. The
map installer and configuration files should go to /sbin and /etc. The operating system kernel (initrd for example) must be lo‐
cated in either / or /boot.
/dev Special or device files, which refer to physical devices. See mknod(1).
ちなみに以下は/varディレクトリの解説。
/var This directory contains files which may change in size, such as spool and log files.