linux 目录结构

摘自:http://www.comptechdoc.org/os/linux/usersguide/linux_ugfilestruct.html

这个目录结构介绍是我目前看到介绍最全的,有时间在翻译。

Linux Directory Structure

Note: Files are grouped according to purpose. Ex: commands, data files, documentation.

Parts of a Unix directory tree. See the FSSTND standard (Filesystem standard)

/			Root
root		The home directory for the root user
home		Contains the user's home directories
    -ftp		Users include many services as listed here
    -httpd
    -samba
    -user1
    -user2
bin			Commands needed during bootup that might be needed by normal users
sbin		Like bin but commands are not intended for normal users.  Commands run by LINUX.
proc		This filesystem is not on a disk.  Exists in the kernels imagination (virtual).  This directory
    			Holds information about kernel parameters and system configuration.
    -1		A directory with info about process number 1.  Each process
				has a directory below proc.  
usr			Contains all commands, libraries, man pages, games and static files for normal
    			operation.
    -bin		Almost all user commands.  some commands are in /bin or /usr/local/bin.
    -sbin		System admin commands not needed on the root filesystem.  e.g., most server 
    			programs.
    -include	Header files for the C programming language.  Should be below /user/lib for
    			consistency.
    -lib		Unchanging data files for programs and subsystems
    -local		The place for locally installed software and other files.
    -man		Manual pages
    -info		Info documents
    -doc		Documentation for various packages
    -tmp
    -X11R6		The X windows system files.  There is a directory similar to usr below this 
    			directory.
    -X386		Like X11R6 but for X11 release 5
boot		Files used by the bootstrap loader, LILO.  Kernel images are often kept here.
lib			Shared libraries needed by the programs on the root filesystem
    -modules 	Loadable kernel modules, especially those needed to boot the system after
			 disasters.
dev			Device files for devices such as disk drives, serial ports, etc.
etc			Configuration files specific to the machine.
    -skel		When a home directory is created it is initialized with files from this directory
    -sysconfig 	Files that configure the linux system for networking, keyboard, time, and more.
var			Contains files that change for mail, news, printers log files, man pages, temp files
    -file
    -lib		Files that change while the system is running normally
    -local		Variable data for programs installed in /usr/local.
    -lock		Lock files.  Used by a program to indicate it is using a particular device or file
    -log		Log files from programs such as login and syslog which logs all logins,
    			logouts, and other system messages.
    -run		Files that contain information about the system that is valid until the system is
    			next booted
    -spool		Directories for mail, printer spools, news and other spooled work.
    -tmp		Temporary files that are large or need to exist for longer than they should in
    			/tmp.
    -catman	A cache for man pages that are formatted on demand
mnt			Mount points for temporary mounts by the system administrator.
tmp			Temporary files.  Programs running after bootup should use /var/tmp.
更多相关文章
  • . 2010年6月,Gartner发布的一个关于CIO的调查报告显示,虚拟化是CIO们第一关注的技术方向,云计算紧随其后.而就在今年了月,本报对50位中国企业CIO进行电话调查,在问及"关于云计算最想了解的是什么"时,其中五分之三的CI0的回复是"云计算的成功案例&qu ...
  • 嘉宾介绍 朱磊,(James Wharton),现任北京沃顿在线执行总裁,复旦大学外聘主讲(安全软件架构课程).前京东.完美世界高级安全经理.负责运维安全.业务安全方向,主导运维流程建设.安全系统设计.信息安全体系落地. 主要内容 将运维进行层次划分,从网络到前端防护逐级分解各层次中安全的风险,以及 ...
  •   括号匹配(二) 时间限制:1 ms    内存限制:65535 KB 难度:6   描述给你一个字符串,里面只包含"(",")","[","]"四种符号,请问你需要至少添加多少个括号才能使这些括号匹配起来.如:[]是 ...
  • 在运行SimpleTaskSystem.NHibernate下的RunMigrations.bat脚本来进行数据库初始化的时候,                           遇到了以下问题:       根据提示,分析了一下路径,发现是路径中的package版本号出错了,将它由 ..\pac ...
  • 李静颖如果不是需要与美国团队一起合作项目,毕业后加入惠普担任工程师的符绩勋不会那么快来到硅谷,那么他至今都可能还是一个工科男.但因为这次机缘,让符绩勋真切感受到了硅谷创新的氛围,"每次感觉已经想到尽头了,却会突然又冒出一个新想法,有太多的可能了."这种永无止境的创新气氛让符绩勋很 ...
  •  问题 某些服务器安全软件允许管理员指定可以登陆的计算机名(管理员电脑的计算机名),若登陆的计算机名并非管理员的,那么服务器安全软件将拦截对方的登陆行为.这种方法乍一看挺安全,但也只能拦住小白的入侵者. 解决思路 1.在提升了自己的权限后,获取远程服务器的登陆记录,来知道管理员的计算机名 copy ...
一周排行
  • 1.强制类型的安全上下文     在SELinux中,访问控制属性叫做安全上上下文.无论主体还是客体都有与之关联的安全上下文,通常安全上下文是由三部分组成:用户:角色:类型.如: $id -Z  joe:user_r ...
  • 广州日报讯 (记者薛松)上周五一则消息牵动了电商业界的神经,那就是全球电商巨头亚马逊的市值超过了传统零售巨头沃尔玛,标志着年轻的科技企业亚马逊比沃尔玛这个最大的零售商更具价值.另一电商巨头阿里巴巴市值也紧咬沃尔玛,如 ...
  • 随着网络用户的增多,各式病毒木马盗号程序自然也将其视为口中的美味.在一批盗号先驱木马倒下的同时,又会生成新的另类的盗号程序,此起彼伏,一个使用不当,即将会给个人网络银行帐户带来不小的损失,让很多网民伤透了脑筋. 这篇 ...
  • MySQL磁盘技术--DRBD:优缺点比较.注意事项以及最佳实践     DRBD 是内核模块方式实现的块级别同步技术.这里的同步级别是可以调整的    因为DRBD 是利用网卡进行块.如果.这里用 Infiniba ...
  • 2014年"双十一"全民狂欢终于落下帷幕,但其中也暗藏了不少购物"陷阱",消费者应当擦亮眼睛以防被"坑".日前,移动社交软件易信全面开放了"晒一晒 ...
  • 一年前的5月底,在一次科技业大会上,谷歌执行董事长施密特首次演示 "Google Wallet"(以下简称"谷歌钱包").这是谷歌的一款移动支付产品,台下一位谷歌工程师顺势掏出 ...
  • 这是我刚刚完成的Revit二次开发的另一个视频课程:高效对象过滤. 对象过滤是Revit二次开发很重要,也是最基本的.了解这个对提高你程序的速度很有帮助. 另外有助于让你全面了解Revit对象过滤的内容. 点击下面链 ...
  • 易网科技讯 4月13日消息,据国外媒体报道,消息人士透露,就收购T-Mobile USA一事,美国第二大卫星电视供应商Dish Network董事长查利·埃尔根(Charlie Ergen)已正式同前者母公司德国电信 ...
  • /*___________________________________________POJ 1002题______________________________________________________ ...
  • CnblogsImageBed -- A place to store images 说明 俗话说:好记性不如烂笔头.工作中会遇到各种各样的需求,各种各样的任务,可能当时完成了,但过一段时间回头看发现连自己都不知道当 ...