- 浏览: 281913 次
- 性别:
- 来自: 天津
文章分类
最新评论
-
狼子六:
已经开始用了
Java 枚举7常见种用法 -
相约的旋律:
方法一下面的"public static fianl ...
Java 枚举7常见种用法 -
kiddy2012:
...
[转载]程序员装B指南 -
fancy105:
写得很好,简单明了双全面!
Java 枚举7常见种用法 -
he_wen:
请问一下 G1算法是否在线上使用了?
Garbage First(G1) 日志分析工具
对于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驱动器等等。
发表评论
-
http_load工具使用
2012-12-11 11:32 1779安装: #wget http://soft.vpser ... -
varnish使用汇总(不断更新)
2012-09-28 17:02 2367Q:如何配置varnish缓存到硬盘? A:http://s ... -
varnish+nginx实现内网附件缓存
2012-09-28 12:43 2558本文是对文件内网缓存方案的实现。 varn ... -
varnish 缓存到硬盘
2012-09-19 18:27 2928方法一:在启动的时候设置 varnishd -s ... -
ubuntu12.04上编译openjdk7
2012-06-13 15:31 4821获取源码 从openjdk代码仓库获取(比较慢) ... -
ubuntu源推荐
2012-04-27 19:36 910国内的源东西不是很全,推荐下面的源。 #### ... -
daemontools安装使用
2012-04-23 16:01 1282Create a /package directory: ... -
nginx query string rewrite
2012-04-19 19:31 5366有url http://192.168. ... -
MooseFS 分布式文件系统介绍与部署
2012-03-14 13:54 1987一些概念 Master 用来管理MooseFS。安装mast ... -
中文ubuntu里用户目录里的路径改成英文
2012-03-03 11:27 1478为了使用起来方便,装了ubuntu中文版,自然在home ... -
[转载]为程序员量身定制的12个目标
2012-01-15 22:38 870对程序员 们来说挑战自我非常重要,要么不断创新,要 ... -
[转载]理解 CMS GC 日志
2011-11-22 14:52 1523CMS GC with -XX:+PrintGCDetai ... -
ubuntu10.04下解决声音问题(爆音,声音断断续续,时快时慢)
2010-06-14 20:53 1865打开/etc/modprobe.d/alsa-base.con ... -
[转载]堆和栈的区别
2010-09-07 00:19 769一、预备知识—程序的内存分配 一个由C/C++编译的程序 ... -
Ubuntu 10.10升级cpus出错解决方法
2010-11-06 13:00 767解决方法: 如果是卡在“正在替换 cups 1.4. ... -
java执行命令(cmd,shell)
2010-12-29 09:32 1223一个简单的小工具,用java执行系统命令,并打印输出。 ... -
hibernate属性配置
2011-06-16 23:25 3030这些属性有的时候很需要,但是记不住,所以做个备忘。 ... -
[转载]毕业奋斗八年成功后有感,给年轻人的10个忠告
2009-07-29 16:06 6011、努力 工作要努 ... -
[转载]年轻人应该知道的71个做饭技巧
2009-09-28 00:04 7371、煮水饺时,在水里放 ... -
[转载]Java开源软件六大帮派
2009-09-28 12:40 690Java 开源软件千千万,就好像一个江湖,有势力的有 ...
相关推荐
是一个关于Linux中英文对照翻译,可以用于。毕业论文
Linux 下各个目录的作用和详细的解析
linux系统中各个目录的作用,主要包括各个目录的用途。
linux系统各个目录的具体含义的详细描述
Linux操作系统错误代码解释 (中英文对照).pdf
linux redhat server6安装中英文对照图解.docx
Linux命令行大全 The Linux Command Line Linux 中英文对照pdf
linux系统主要目录作用.docx
LinuxUNIX系统编程手册 全部英文版 文字版pdf 有目录
有中英文对照翻译的 ,IDEA快捷键,WINDOWS & LINUX KEYMAP
详细描述介绍了Linux系统各个目录及各个目录的功能作用
Linux操作系统错误代码解释-(中英文对照)
Linux下etc中各个文件的作用 /etc/auth:安全数据库文件 :8>Lr-;/'_ /etc/auth/subsystems:带保护的子系统授权数据库 !e1>T fg~ /etc/auth/system:整个系统范围内的授权数据 FSi`bn^ =1 /etc/conf:系统配置的主...
...
总包合同范本.pdf
Linux命令中英文对照(一)
linux系统各个目录的含义
linux笔记Linux各个目录的作用及内容[参考].pdf
操作系统错误代码2:没有这样的文件或目录 OS error code 3: No such process 操作系统错误代码3:没有这样的过程 OS error code 4: Interrupted system call 操作系统错误代码4:中断的系统调用 OS error code 5: ...
linux system programming(linux系统编程)中英文版合集