转自:Unix/Linux中/usr目录的由来

在Linux系统中,有一个很重要的目录——/usr目录。关于这个目录名称的由来,网上主要有下面几种说法:

user的缩写
User Shareable Read-only的缩写
Unix/User System Resources的缩写
Unix/User Software Resources的缩写
目前大多数版本的Linux中/usr目录主要放置的是可执行文件和先关库文件,因此user好像不太可能。

查阅了相关的资料,关于/usr目录起源的说法如下:

/usr usually contains by far the largest share of data on a system.
Hence, this is one of the most important directories in the system as
it contains all the user binaries, their documentation, libraries,
header files, etc… X and its supporting libraries can be found
here. User programs like telnet, ftp, etc… are also placed here. In
the original Unix implementations, /usr was where the home directories
of the users were placed (that is to say, /usr/someone was then the
directory now known as /home/someone). In current Unices, /usr is
where user-land programs and data (as opposed to ‘system land’
programs and data) are. The name hasn’t changed, but it’s meaning has
narrowed and lengthened from “everything user related” to “user usable
programs and data”. As such, some people may now refer to this
directory as meaning ‘User System Resources’ and not ‘user’ as was
originally intended.

/usr is shareable, read-only data. That means that /usr should be
shareable between various FHS-compliant hosts and must not be written
to. Any information that is host-specific or varies with time is
stored elsewhere.
Large software packages must not use a direct subdirectory under the
/usr hierarchy.

/usr目录存放了系统中重要的二进制文件,文档,库文件,头文件等等。在早期的Unix版本中,/usr目录是作为用户的家目录而存在的(相当于现在的/home目录),因此这个目录的名字最开始应该是user的缩写,表示用户的家目录。而现在的Unix版本中,/usr目录的作用已经大不相同了,主要存放的是一些非系统启动必要的程序和数据。因此一些人把/usr目录的含义引申为User System Resources.

/usr目录存放共享的,只读的数据。这意味着/usr应该是可以在兼容FHS标准的主机间共享的,并且其中的数据是不应该被修改的。那些与主机属性相关或者经常变动的数据不应该存放在次目录。

大型的软件包不要使用/usr下的子目录存放。

由此以来,/usr目录的由来就真相大白了。你可以称之为User System Resources或者User Shareable Read-only. Whatever, 了解它的历史和作用就好。

在Linux系统中,有一个很重要的目录——/usr目录。关于这个目录名称的由来,网上主要有下面几种说法:

user的缩写
User Shareable Read-only的缩写
Unix/User System Resources的缩写
Unix/User Software Resources的缩写
目前大多数版本的Linux中/usr目录主要放置的是可执行文件和先关库文件,因此user好像不太可能。

查阅了相关的资料,关于/usr目录起源的说法如下:

/usr usually contains by far the largest share of data on a system.
Hence, this is one of the most important directories in the system as
it contains all the user binaries, their documentation, libraries,
header files, etc… X and its supporting libraries can be found
here. User programs like telnet, ftp, etc… are also placed here. In
the original Unix implementations, /usr was where the home directories
of the users were placed (that is to say, /usr/someone was then the
directory now known as /home/someone). In current Unices, /usr is
where user-land programs and data (as opposed to ‘system land’
programs and data) are. The name hasn’t changed, but it’s meaning has
narrowed and lengthened from “everything user related” to “user usable
programs and data”. As such, some people may now refer to this
directory as meaning ‘User System Resources’ and not ‘user’ as was
originally intended.

/usr is shareable, read-only data. That means that /usr should be
shareable between various FHS-compliant hosts and must not be written
to. Any information that is host-specific or varies with time is
stored elsewhere.
Large software packages must not use a direct subdirectory under the
/usr hierarchy.

/usr目录存放了系统中重要的二进制文件,文档,库文件,头文件等等。在早期的Unix版本中,/usr目录是作为用户的家目录而存在的(相当于现在的/home目录),因此这个目录的名字最开始应该是user的缩写,表示用户的家目录。而现在的Unix版本中,/usr目录的作用已经大不相同了,主要存放的是一些非系统启动必要的程序和数据。因此一些人把/usr目录的含义引申为User System Resources.

/usr目录存放共享的,只读的数据。这意味着/usr应该是可以在兼容FHS标准的主机间共享的,并且其中的数据是不应该被修改的。那些与主机属性相关或者经常变动的数据不应该存放在次目录。

大型的软件包不要使用/usr下的子目录存放。

由此以来,/usr目录的由来就真相大白了。你可以称之为User System Resources或者User Shareable Read-only. Whatever, 了解它的历史和作用就好。

Unix/Linux中/usr目录的由来相关推荐

  1. Linux中usr目录

    usr目录给人的感觉总是user的缩写,真的太像了,我刚开始也是这么感觉的,我还在想usr目录和home目录都是用户的家目录吗,感觉不太合适呀,经过一波周折才发现,usr之前还真是用户的家目录,不过现 ...

  2. linux中各目录及详细介绍

    linux中各目录及详细介绍 一.Linux文件系统的层次结构 在Linux或UNIX操作系统中,所有的文件和目录都被组织成一个以根节点开始的倒置的树状结构,如图: 二.目录 1.目录的定义 目录相当 ...

  3. linux文件目录:Linux中各目录(文件夹)作用详解(持续更新)

    进入Linux系统,我们就是畅游在各种目录文件中,毕竟Linux是"文件系统",文件的存放就是在目录下面,那我们了解下"Linux中各目录(文件夹)作用详解"还 ...

  4. Linux中/proc目录下文件详解

    Linux中/proc目录下文件详解(一) 声明:可以自由转载本文,但请务必保留本文的完整性. 作者:张子坚 email:zhangzijian@163.com 说明:本文所涉及示例均在fedora ...

  5. php linux脚本文件,Unix/Linux中如何直接执行PHP脚本文件?

    使用Linux系统的服务器都有搭建完整的PHP环境,因此有些用户会用PHP去写一些执行自动化任务的脚本,可是发现每次执行PHP脚本都需要使用php myscript.php的方式,感觉有点麻烦.其实我 ...

  6. Linux中的目录和文件管理

    Linux中的目录和文件管理 1:Linux的命令分类:内部命令和外部命令 内部命令属于shell解释器的一部分 外部命令是独立于shell解释器之外的程序文件 2:Linux命令的通用格式 命令字  ...

  7. Unix/Linux 中的 shell 机制

    Unix/Linux 中的 shell 机制 对于初次接触 Unix/Linux 系统的同学来说,Unix/Linux 系统与 Windows 系统最大的不同就是,操作 Unix/Linux 系统更多 ...

  8. Linux中常用目录作用

    Linux中常用目录作用 1.可以在家目录root或home,以及temp目录下随便放东西. 2.根目录下的bin和sbin,usr目录下的bin和sbin,这四个目录都是用来保存系统命令的.其中,普 ...

  9. Linux中/proc目录下文件详解 /proc/devices文件 /proc/modules文件

    http://blog.chinaunix.net/uid-10449864-id-2956854.html 原来对linux系统中的/proc目录不是很了解,只知道可以查看cpu,内存等相关的信息, ...

  10. linux在当前目录下创建pic目录,Linux中/proc目录下文件详解

    文章转自: Linux中/proc目录下文件详解(一) ------------------------------------------------------------------------ ...

最新文章

  1. es5 - array - pop
  2. SWAP使用情况以及muma介绍
  3. C++调用Python实例
  4. 【Java】Struts2配置默认Action和配置Action的默认处理类
  5. boost::math::quadrature::tanh_sinh用法的测试程序
  6. android weex跳转闪退,关于weex页面在android端跳转的问题
  7. 转帖:ESB(Enterprise Service Bus)
  8. 也谈cacti整合nagios(centos)
  9. 机器人搏击大赛冠军_机器人的江湖 谁主沉浮——2017格斗机器人大赛侧记
  10. php 类的属性与方法的注意事项
  11. 基于matlab的车牌定位算法设计与实现,matlab车牌定位系统设计(源码+文档)
  12. 课时22:函数:递归是神马
  13. L1-073 人与神 (5 分)-PAT 团体程序设计天梯赛 GPLT
  14. redis的基础配置
  15. 帆软参数设置_系统参数设置- FineReport帮助文档|报表开发|报表使用|学习教程
  16. 网站备案相关问题解答
  17. 安防意识增强 澳洲迈向新发展
  18. Linux 系统下实践 VLAN
  19. 使用Nginx实现多重流量复制
  20. 一场别开生面的黑客面基大会

热门文章

  1. iOS-UIGraphics将两个图片合并成一张
  2. tensorflow构建神经网络回归分析可视化
  3. 加一 — Python
  4. php strpos注意问题坑,php小白容易出现的 strpos 逻辑错误
  5. 【Datawhale数据可视化组队学习】Task05 - 样式色彩秀芳华
  6. 杂记【1】win10 密钥模式SSH登录CentOS7
  7. java 登录12306_请教java尝试模拟登录12306时遇到的一个问题
  8. 杂谈(1)--人生必知的78种经典效应
  9. 如何使单片机复位可靠,单片机复位电路?
  10. uni-app 分享给好友,生成小程序二维码海报