Linux 默认根目录的作用说明(中英文对照)

来源:http://www.prospettivedarte.com 作者:计算机教程 人气:160 发布时间:2019-10-21
摘要:对于Linux新手来说,最感到迷惑的问题之一就是文件都存在哪里呢?特别是对于那些从Windows转过来的新手来说,Linux的目录结构看起来有些奇怪哦。所以,在这里讲一下Linux下的主要目录

  对于Linux新手来说,最感到迷惑的问题之一就是文件都存在哪里呢?特别是对于那些从Windows转过来的新手来说,Linux的目录结构看起来有些奇怪哦。所以,在这里讲一下Linux下的主要目录以及它们都是用来干什么的。

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.”

/

  /

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.”

  这就是根目录。对你的电脑来说,有且只有一个根目录。所有的东西,我是说所有的东西都是从这里开始。举个例子:当你在终端里输入“/home”,你其实是在告诉电脑,先从/(根目录)开始,再进入到home目录。

这个是根目录。每个主机都只有一个根目录,是系统文件开始的地方

  /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

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 user)的目录。对于系统来说,系统管理员就好比是上帝,它能对系统做任何事情,甚至包括删除你的文件。因此,请小心使用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.

/bin

  /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”系统变量里面了。什么意思呢?www.linuxidc.com 就是:当你在终端里输入ls,系统就会去/bin目录下面查找是不是有ls这个程序。

这个目录存放了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.

/etc

  /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.

  这里主要存放了系统配置方面的文件。举个例子:你安装了samba这个套件,当你想要修改samba配置文件的时候,你会发现它们(配置文件)就在/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.

/dev

  /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. 

  这里主要存放与设备(包括外设)有关的文件(unix和Linux系统均把设备当成文件)。想连线打印机吗?系统就是从这个目录开始工作的。另外还有一些包括磁盘驱动、USB驱动等都放在这个目录。

皇牌天下投注网,这个目录主要存放与设备有关的文件。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.

/home

本文由皇牌天下投注网发布于计算机教程,转载请注明出处:Linux 默认根目录的作用说明(中英文对照)

关键词:

上一篇:64位CentOS 6.4安装网络监控 ntopng

下一篇:没有了

最火资讯