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 ...
一周排行
  • 北京商报讯(记者 齐琳 曲忠芳)继Lumia智能手机放弃诺基亚品牌后,微软对诺基亚功能手机也开始"动手".昨日,微软宣布将于2015年上半年关闭Nokia Store应用商店,用户将迁移至浏览器厂 ...
  • c++复合运算 成员函数,友元,运算符重载.  代码基于Visual Studio 2013 update 4 Etc.   // diyTypeCal.cpp : 定义控制台应用程序的入口点. //   #incl ...
  • SAP日前发布了其全新贸易服务应用的更新,旨在满足全球贸易客户管理大宗复杂的供应链和物流系统时各种不同的需求. 据国外媒体报道,SAP在本周于拉斯维加斯举行的GR&C会议上发布了BusinessObject风 ...
  • 正在实现一个线程池的pthread包装器,突然发现有人在讨论关于http://blog.csdn.net/Solstice/article/details/5238671 是一篇比较老的文章,考虑了下 我在实现线程池 ...
  • ///// <summary>    /// 生成带版权水印的图片    /// </summary>    /// <param name="IconImg"> ...
  • function orientationChange(){ switch(window.orientation) { case 0: // Portrait case 180: // Upside-down Port ...
  •   问题: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Fo ...
  • 众所周知,servlet是java在服务器端程序设计 的重要组成部分,servlet执行效率较高,适合做程序的逻辑处理,缺点是使用起来比较繁琐,每个servlet必须在web.xml中声明并且当修改部署后的serve ...
  • 乐视手机的传闻已经很久了,继昨天通过了3C认证后,现在它的真容也浮出了水面.尽管画面并不是很清晰,但是通过仔细观察,可以发现这款乐视手机的屏幕边框真的很窄 今天下午,著名演员贾乃亮通过微博曝光了乐视手机的真机谍照,从 ...
  • 一.数组特点 数组是一种效率最高的存储和随机访问对象引用序列的方法. 数组可以存放基础类型与对象的引用.本身就是一个容器,是固定长度的,保存相同类型.  优点:写入与读取效率.保存基本类型的能力,索引的效率是O(1) ...