为什么80%的码农都做不了架构师?>>>   

对于linux 新手来说,最感到迷惑的问题之一就是文件都存在哪里呢?特别是对于那些从windows转过来的新手来说,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.”

  /

  这就是根目录。对你的电脑来说,有且只有一个根目录。所有的东西,我是说所有的东西都是从这里开始。举个例子:当你在终端里输入“/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 user)的目录。对于系统来说,系统管理员就好比是上帝,它能对系统做任何事情,甚至包括删除你的文件。因此,请小心使用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

  这里存放了标准的(或者说是缺省的)linux的工具,比如像“ls”、“vi”还有“more”等等。通常来说,这个目录已经包含在你的“path”系统变量里面了。什么意思呢?就是:当你在终端里输入ls,系统就会去/bin目录下面查找是不是有ls这个程序。

  /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

  这里主要存放了系统配置方面的文件。举个例子:你安装了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

  这里主要存放与设备(包括外设)有关的文件(unix和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

  这里主要存放你的个人数据。具体每个用户的设置文件,用户的桌面文件夹,还有用户的数据都放在这里。每个用户都有自己的用户目录,位置为:/home/用户名。当然,root用户除外。

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

  /tmp

  这是临时目录。对于某些程序来说,有些文件被用了一次两次之后,就不会再被用到,像这样的文件就放在这里。有些linux系统会定期自动对这个目录进行清理,因此,千万不要把重要的数据放在这里。

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

  /usr

  在这个目录下,你可以找到那些不适合放在/bin或/etc目录下的额外的工具。比如像游戏阿,一些打印工具拉等等。/usr目录包含了许多子 目录:/usr/bin目录用于存放程序;/usr/share用于存放一些共享的数据,比如音乐文件或者图标等等;/usr/lib目录用于存放那些不 能直接运行的,但却是许多程序运行所必需的一些函数库文件。你的软件包管理器(应该是“新立得”吧)会自动帮你管理好/usr目录的。

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

  /opt

  这里主要存放那些可选的程序。你想尝试最新的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.

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

  /media

  有些linux的发行版使用这个目录来挂载那些usb接口的移动硬盘(包括U盘)、CD/DVD驱动器等等。

转载于:https://my.oschina.net/qihh/blog/62884

Linux系统各个目录的作用(中英文对照)相关推荐

  1. 目录英文linux,Linux系统各个目录的作用(中英文对照)

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

  2. Linux系统主要目录及作用

    Linux系统主要目录及作用 /bin 一些基础命令   /etc 系统或软件的配置文件   /boost 内核相关和启动相关的文件   /dev 存放着各种设备文件   /home 用户相关的目录 ...

  3. linux系统/var目录的作用

    linux系统/var目录的作用 一.总结 一句话总结: 1.如果/usr是安装时会占用较大硬盘容量目录,那么/var就是在系统运行后才会渐渐占用硬盘容量的目录. 2.因为var目录主要针对常态性变动 ...

  4. Linux /dev目录详解和Linux系统各个目录的作用

    Linux /dev目录详解和Linux系统各个目录的作用 标签: linuxtcpfunctionclassfirefoxtimer 2012-01-11 23:08 45517人阅读 评论(2) ...

  5. linux中dev目录的作用,Linux 的dev目录详解和Linux系统各个目录的作用

    Linux /dev目录详解 在linux下,/dev目录是很重要的,各种设备都在下面.下面简单总结一下: dev是设备(device)的英文缩写./dev这个目录对所有的用户都十分重要.因为在这个目 ...

  6. Linux(centos)系统各个目录的作用详解

    转自:Linux(centos)系统各个目录的作用详解 现在公司的服务器使用CentOS系统,在网上找到了这篇介绍linux各个目录的文章,觉得十分不错,所以拿来存个档. 整理之后如下: 文件系统的类 ...

  7. Linux 下各个目录的作用及内容

    Linux 下各个目录的作用及内容 在 Linux 下,我们看到的是文件夹(目录): 在早期的 UNIX 系统中,各个厂家各自定义了自己的 UNIX 系统文件目录,比较混乱.Linux 面世不久后,对 ...

  8. Linux运维必看!深入掌握 Linux 系统的目录结构就靠本文了

    Linux和Windows操作系统中的文件系统些不同,在学习使用linux之前,能够了解这个不同之处助于后续的学习.本文先对Windows和Linux上面文件系统的一些概念进行区分,然后介绍一些Lin ...

  9. LINUX 挂载点目录及其作用

    什么是挂载点? Linux 使用字母和数字的组合来指代磁盘分区 Linux 是一切皆文件,整个系统都是当做文件来管理,在Windows中的磁盘分区,硬件设备就是Linux的挂载点,对磁盘的访问就相当于 ...

最新文章

  1. Android 入门开发
  2. python正则表达式面试_【正则表达式Python面试题】面试问题:Scrapy之… - 看准网...
  3. 一图看尽全生态, 2018区块链产业云图重磅发布
  4. 服务器脚本执行sql文件命令行,sh命令执行sql脚本
  5. 关闭excel多余的addin,提供excel启动速度
  6. echart vue 图表大小_vue里echarts自适应窗口大小改变
  7. C#正则表达式开源工具
  8. Java ObjectInputStream readDouble()方法与示例
  9. Django最佳实践:项目布局
  10. 基于友善之臂ARM-ContexA9-ADC驱动开发
  11. 小熊的人生回忆(五)
  12. ASCIIUNICODE编码演化
  13. 根据线性递推的DP公式如何写出变换矩阵
  14. Danfo.js专题 - 附:Dnotebook(Danfo Notebook)单机资源与汉化文档
  15. html5 css3 javascript从入门到精通,HTML5+CSS3+JavaScript从入门到精通(微课精编版)
  16. vue+element pagination分页的二次封装,带首页末页功能
  17. Push rejected: Push master to origin/master was rejected by remote
  18. Python爬虫入门教程【6】:蜂鸟网图片爬取之一
  19. 异常来自 HRESULT:0x80070057 (E_INVALIDARG)
  20. 作为一个计算机专业的学生,除了教材,这些书籍你读过多少?

热门文章

  1. centos7部署gitlab遇到的坑
  2. TFT LCD显示原理详解
  3. 使用LoRa技术进行智慧城市转型
  4. 算法笔记_167:算法提高 矩阵翻转(Java)
  5. centos7-docker-swarmkit集群应用
  6. 微软发布ASP.NET 5路线图
  7. Python 抓取网页乱码问题 以及EXCEL乱码
  8. 怎样做才是一个独立自主的人?
  9. SVN的使用及MyEclipse的集成
  10. 解决IE6、IE7、IE8、Firefox兼容的两种方案