Linux根目錄下各文件夾名字完整含義

轉(zhuǎn)自:http://serverfault.com/questions/24523/meaning-of-directories-on-unix-and-unix-like-systems

/bin - Binaries.
/boot - Files required for booting.
/dev - Device files.
/etc - Etcctera. The name is inherited from the earliest Unixes, which is when it became the spot to put config-files.
/home - Where Home directories are kept.
/lib - Where code libraries are kept.
/media - A more modern directory, but where removable media gets mounted.
/mnt - Where temporary file-systems are mounted.
/opt - Where opt
tional add-on software is installed. This is discrete from /usr/local/ for reasons I'll get to later.
/run - Where run
time variable data is kept.
/sbin - Where super-binaries are stores. These usually only work with root.
/usr - Another directory inherited from the Unixes of old, it stands for "user". This directory should be sharable between hosts, and can be NFS mounted to multiple hosts safely. It can be mounted read-only safely. Also as per Debian Wiki, /usr is UNIX System Resources.
/var - Another directory inherited from the Unixes of old, it stands for "variable". This is where system data that varies may be stored. Such things as spool and cache directories may be located here. If a program needs to write to the local file-system and isn't serving that data to someone directly, it'll go here.
/srv - Stands for "serve". This directory is intended for static files that are served out. /srv/http
would be for static websites, /srv/ftp for an FTP server.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容