Linux中的各个目录
/
This is the root directory. The mothership. The home field. The one and only top directory for your whole computer. Everything, and I mean EVERYTHING starts here. When you type ‘/home’ what you’re really saying is “start at / and then go to the home directory.”
这个是根目录。每个主机都只有一个根目录,是系统文件开始的地方
/root
This is where the root user lives. The root user is the god of your system. Root can do anything, up to and including removing your entire filesystem. So be careful using root
这个是root用户的目录,root用户是系统中权限最高的用户,可以删除系统文件,因此需要慎用。
/bin
Here’s where your standard linux utilities(read programs) live — things like “ls” and “vi” and “more”. Generally this directory is included in your path. What this means is that if you type ‘ls’, /bin is one of the places your shell will look to see if ‘ls’ means anything.
这个目录存放了Linux中缺省的工具,如ls,vi,more等命令。这个目录一般都默认在path的环境变量里面。
/etc
Here’s where the administrative and system configuration stuff lives. For instance, if you have samba installed, and you want to modify the samba configuration files, you’d find them in /etc/samba.
这个目录主要存放了系统配置方面的文件
/dev
Here’s where files that control peripherals live. Talking to a printer? Your computer is doing it from here. Same goes for disk drives, usb devices, and other such stuff.
这个目录主要存放与设备有关的文件。Linux中将设备文件,因此诸如打印机,磁盘驱动,USB驱动等等,都放在这个目录下
/home
Here’s where your data is stored. Config files specific to users, your Desktop folder(whick makes your desktop what it is), and any data related to your user. Each user will have their own /home/username folder, with the exception of the root user.
主要是存放个人数据。除了root用户,其他用户的设置文件,桌面文件以及个人数据都是放在各自的用户目录下面。如test用户,其个人数据以及桌面等文件都是放在/home/test/目录下面
/tmp
This is the Temporary folder. Think of it as a scratch directory for your Linux system. Files that won’t be needed by programs once their used once or twice are put here. Many Linux systems are set to automatically wipe the /tmp folder at certain intervals, so don’t put things you want to keep here
这个是临时目录,一般不要把重要文件放在这个目录里面
/usr
Here’s where you’ll find extra utilities that don’t fit under /bin or /etc. Things like games, printer utilities, and whatnot. /usr is divided into sections like /usr/bin for programs, /usr/share for shared data like sound files or icons, /usr/lib for libraries whick cannot be directly run but are essential for running other programs.Your package manager takes care of the things in /usr for you
这个目录存放那些不适合放在/bin或是/etc目录下的额外的工具,如游戏,office等等。这个目录下面还有很多子目录,如/usr/bin/存放程序,/usr/share存放共享数据,/usr/lib/存放那些不能直接运行,但是某些程序需要依赖的库文件
/opt
Here’s where optional stuff is put. Trying out the latest Firefox beta? Install it to /opt where you can delete it without affecting other settings. Programs in here usually live inside a single folder whick contains all of their data, libraries, etc.
这里主要存放那些可选的程序。你想尝试最新的firefox测试版吗?那就装到/opt目录下吧,这样,当你尝试完,想删掉firefox的时候,你就可以直接删除它,而不影响系统其他任何设置。安装到/opt目录下的程序,它所有的数据、库文件等等都是放在同个目录下面。举个例子:刚才装的测试版firefox,就可以装到/opt/firefox_beta目录下,/opt/firefox_beta目录下面就包含了运行firefox所需要的所有文件、库、数据等等。要删除firefox的时候,你只需删除/opt/firefox_beta目录即可,非常简单。
/usr/local
This is where most manually installed(ie. outside of your package manager) software goes. It has the same structure as /usr. It is a good idea to leave /usr to your package manager and put any custom scripts and things into /usr/local, since nothing important normally lives in /usr/local.
这里主要存放那些手动安装的软件,即不是通过“新立得”或apt-get安装的软件。它和/usr目录具有相类似的目录结构。让软件包管理器来管理/usr目录,而把自定义的脚本(scripts)放到/usr/local目录下面,我想这应该是个不错的主意
/media
Some distros use this folder to mount things like usb disks, cd or dvd drives and other filesystems.
有些linux的发行版使用这个目录来挂载那些usb接口的移动硬盘(包括U盘)、CD/DVD驱动器等等。
相关推荐
linux系统各个目录的含义
linux下的各个目录的含义 对于初学ARM9的朋友我认为应该先看看这些
linux系统各个目录的具体含义的详细描述
一些有用的Linux目录。Linux根目录”/“下各个系统文件夹的含义和用途--/boot 该目录默认下存放的是Linux的启动文件和内核。
linux-内核编译各个选项的含义,详细说明了linux Kernel菜单中的各种配置含义
linux内核编译各个选项的含义[参照].pdf
linux内核编译各个选项的含义.pdf
linux内核编译各个选项的含义归类.pdf
linux内核编译各个选项的含义定义.pdf
附加的应用软件包/proc 所有正在运行进程的映象/root 超级用户的主目录/sbin 引导、修复或者恢复系统的命令/tmp 每次重启就消失的临时文件/usr 次要文件和命令层次结构/ust/bin 大多数命令和可执行文件/usr/include ...
附加的应用软件包/proc 所有正在运行进程的映象/root 超级用户的主目录/sbin 引导、修复或者恢复系统的命令/tmp 每次重启就消失的临时文件/usr 次要文件和命令层次结构/ust/bin 大多数命令和可执行文件/usr/include ...
本光盘是《Linux环境下C编程指南(第2版)》一书的配书光盘,内容包括了书中所有示例的源程序代码。 本光盘根目录下包括文件夹source code和一个readme文本文件,其内容和含义说明如下: (1) source code目录中...
Linux各种发行版的目录结构基本一致,各个目录简单介绍如下: 目录 描述 / 根目录 /bin 做为基础系统所需要的最基础的命令就是放在这里。比如 ls、cp、mkdir等命令;功能和/usr/bin类似,这个...
CentOS 8 for Linux的根目录下各个目录的用途及含义,添加挂载点实现的具体方法 Linux系统的文件目录、类型和颜色的详细介绍 Linux远程管理(MobaXterm)使用教程 Linux基础命令篇 Linux基础命令学习——工作目录切换...
3、linux的各个目录存放的内容是规划好的。因为linux上一切皆为文件,比如你插入一个U盘,那u盘的内容如何显示(把硬件也当做一个文件),就应该提前规划好,方便别人查找,新建一个用户,用户信息存放在那里这些都...
运行ls –l命令,结合教材中图2.2,了解各个目录的作用。 5) 直接使用cd,通过pwd指令验证目录位置。 6) 用mkdir建立一个子目录subdir。 7) 将工作目录更改到subdir。 4.文件操作: 1) 验证当前工作目录在subdir。 ...
12.2 现有proc文件系统中各个文件的含义 12.3 怎样使用/proc文件系统 12.4 seq file 12.5 proc文件系统的内部实现机制 12.6 实验一:使用proc文件系统的一个简单例子 12.7 实验二:利用/proc文件系统显示缺页状态 ...
Linux中tail,find,grep,sed,awk等,各个查找替换,常用命令,可以很好 的了解tail,find,grep,sed,awk等各个命令的各个参数的含义和用法,掌握Linux下查找替换的功能
在Linux中,如果要使用硬盘、光驱等储存设备,就得先将它加载,当储存设备挂上了之后,就可以把它当成一个目录来访问。挂上一个设备使用mount命令。在使用mount这个指令时,至少要先知道下列三种信息:要加载对象的...
linux系统命令及其使用详解主要介绍了linux的安装及各种命令含义