首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

【基础知识】Linux文件目录结构一览表

学习 Linux,不仅限于学习各种命令,了解整个 Linux 文件系统的目录结构以及各个目录的功能同样至关重要。 使用 Linux 时,通过命令行输入 ls -l / 可以看到,在 Linux 根目录(/)下包含很多的子目录(称为一级目录),例如 bin、boot、dev 等。同时,各一级目录下还含有很多子目录(称为二级目录),比如 /bin/bash、/bin/ed 等。Linux 文件系统目录总体呈现树形结构,/ 根目录就相当于树根。 由于 Linux 系统免费开源,使得 Linux 发行版本有很多,利用 Linux 开发产品的团队也有很多,如果任由每个人都按照自己的想法来配置 Linux 系统文件目录,后期可能会产生诸多的管理问题。试想,如果你进入一家公司,所用 Linux 系统的文件目录结构与所学的完全不同,实在令人头疼。 为了避免诸多使用者对 Linux 系统目录结构天马行空,Linux 基金会发布了 FHS 标准。多数 Linux 发行版系统都遵循这一标准。

02

linux文件树

以前有意找这方面的资料,今天突然发现在系统中就有 linux系统用man hier solaris用man  filesystem 其结果如下        /      This is the root directory.  This is where the whole tree starts.        /bin   This directory contains executable programs which are needed in sin-               gle user mode and to bring the system up or repair it.        /boot  Contains static files for the  boot  loader.   This  directory  only               holds  the  files which are needed during the boot process.  The map               installer and configuration files should go to /sbin and /etc.        /dev   Special or device files,  which  refer  to  physical  devices.   See               mknod(1).        /dos   If  both MS-DOS and Linux are run on one computer, this is a typical               place to mount a DOS file system.        /etc   Contains configuration files which are local to the  machine.   Some               larger  software  packages, like X11, can have their own subdirecto-               ries below /etc.  Site-wide configuration files may be  placed  here               or in /usr/etc.  Nevertheless, programs should always look for these               files in /etc and you may have links for these files to /usr/etc.        /etc/opt               Host-specific configuration files for add-on applications  installed               in /opt.        /etc/sgml               This  directory  contains  the  configuration files for SGML and XML               (optional).        /etc/skel               When a new user account is created, files from  this  directory  are               usually copied into the user’s home directory.        /etc/X11               Configuration files for the X11 window system (optional).        /home  On  machines  with  home  directories  for  users, these are usually               beneath this directory, directly or  not.   The  structure  of  this               directory depends on local administration decisions.        /lib   This directory should hold those shared libraries th

02
领券