Linux Learning Notes--common directories and their roles

Source: Internet
Author: User

Linux is a very rigorous operating system, it each level of the role of the directory is actually strictly defined, next we will look at the common use of Linux directory of the role.

All Linux first-level directories are as follows:

"/" 根目录。    Linux系统的最高级目录。
"/bin" 命令保存目录。       存放着如"cp"、"ls"、"cat"等命令(普通用户就可以读取的命令)。
"/boot" 启动目录。        主要存放启动Linux系统所必需的文件,包括内核文件、启动菜单配置文件等,        当计算机启动时,这些文件会首先被加载。
"/dev" 设备文件保存目录。       这里主要存放与设备(包括外设)有关的文件       (unix和linux系统均把设备当成文件)。       想连线打印机吗?系统就是从这个目录开始工作的。       另外还有一些包括磁盘驱动、USB驱动等都放在这个目录。
"/etc" 配置文件保存目录。       举个例子:你安装了samba这个套件,当你想要修改samba配置文件的时候,       你会发现这些配置文件就在/etc/samba目录下。
"/home" 普通用户的家目录。        比如说有个用户叫liu,那他的家目录就是/home/liu,        并且用户的个人数据如桌面文件等都存放在这里。
"/lib" 系统库保存目录。       这个目录里存放着系统最基本的动态连接库,       几乎所有的应用程序都须用这些共享库。
"/lost+found"        这个目录一般情况下是空的,       当系统非法关机后,如果你丢失了一些文件,在这里能找回来       用来存放fsck过程中部分修复的文件的。
"/media" 挂载目录。         光盘等存储设备默认挂载点。
"/misc" 挂载目录。        磁带机等设备的挂载点。
"/mnt" 系统挂载目录。       系统提供这个目录是让用户临时挂接别的文件系统       如U盘、移动硬盘等。
"/net" 网络目录挂载点。       /net 是使用自动挂载(automount)时挂载网络目录的标准挂载点。
"/opt"        /opt 目录可以理解为安装可选程序的地方。
"/proc" 内存文件目录。        目录中保存的是内存的过载点。
"/root" 超级用户(root)的家目录。        里面存放根用户(root用户)的数据、文件等。
"/sbin" 命令保存目录。        s就是super user的意思,也就是说这里存放的是root管理员使用的命令程序。
"/sys" 内存文件目录。       目录中保存的是内存的过载点。
"/tmp" 临时文件目录。       这个目录是存放一些临时文件的地方。       有些linux系统会定期自动对这个目录进行清理,       因此,千万不要把重要的数据放在这里。
"/usr" 系统软件资源目录。       主要存放安装的软件、系统共用的文件、内核源码等。       一般我们会将自己需要的软件安装到"/usr/local"目录下。
"/var" 系统相关文档内容存放目录。       动态文件或数据存放目录,默认日志文件都存放在这个目录下("/var/log/"),       一般建议把此目录单独划分一个分区。

Linux Learning Notes--common directories and their roles

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.