usr 真的是 Unix Shared Resources 的缩写,而不是 user 的缩写吗?

2015-11-16 15:19:20 +08:00
 justjavac

刚才看《开源世界旅行手册》,原来 usr 是 Unix Shared Resources 的缩写,真是涨姿势了,我一直以为是 user 的缩写

14566 次点击
所在节点    Linux
97 条回复
ufo22940268
2015-11-16 15:34:24 +08:00
yylzcom
2015-11-16 15:36:50 +08:00
我真的以为是 user 的缩写

Regular Expression 正则表达式这个理解不能,对普通人来说才不 regular 了吧
banxi1988
2015-11-16 15:37:04 +08:00
我以前也以为是 user 的简写,之前听有人说, unix 的目录为了节省尽量控制在三个字符。

现在年到这些缩写很感慨 ,其中的很多的缩写,都感觉是全新的单词似的。
lib,tmp,var,bin,diff,tab,dev
justjavac
2015-11-16 16:01:23 +08:00
简直毁三观啊
yougg
2015-11-16 16:07:07 +08:00
为毛 没有 mnt, opt, srv, sys...
squid157
2015-11-16 16:10:37 +08:00
etc 不应该是 editable text configuration 什么的么
frittle
2015-11-16 16:18:02 +08:00
最初就是 user 的缩写。
wy315700
2015-11-16 16:23:53 +08:00
这不是应该是常识吗,
doublleft
2015-11-16 16:28:03 +08:00
想起来那个笑话: Bing 其实是 Bing is not Google 的缩写
11138
2015-11-16 16:36:28 +08:00
是“ Unix System Resources ”吧。
love
2015-11-16 16:41:57 +08:00
我不信啊,开始应该是 user ,表示用户的文件。
比如系统的执行文件在 /bin ,用户的 /usr/bin
laoyur
2015-11-16 16:45:06 +08:00
@love 如果真是表示用户的文件,为嘛不是 /home/xxx ,这里才是真真正正的 user 呢
wizardoz
2015-11-16 16:54:25 +08:00
原来还真以为是 user 的缩写,你这么一说,觉得确实 /usr 目录和 user 没有半毛钱关系。
love
2015-11-16 16:55:20 +08:00
abcdabcd987
2015-11-16 16:55:37 +08:00
etc 好敷衍啊
Showfom
2015-11-16 16:59:42 +08:00
用户文件都在 /home/username 下啊
laoyur
2015-11-16 16:59:51 +08:00
@love 好吧,你提供的链接的确如你所说:
> 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.
asj
2015-11-16 17:03:58 +08:00
@laoyur
http://lists.busybox.net/pipermail/busybox/2010-December/074114.html

You know how Ken Thompson and Dennis Ritchie created Unix on a PDP-7 in 1969?
Well around 1971 they upgraded to a PDP-11 with a pair of RK05 disk packs (1.5
megabytes each) for storage.

When the operating system grew too big to fit on the first RK05 disk pack (their
root filesystem) they let it leak into the second one, which is where all the
user home directories lived (which is why the mount was called /usr). They
replicated all the OS directories under there (/bin, /sbin, /lib, /tmp...) and
wrote files to those new directories because their original disk was out of
space. When they got a third disk, they mounted it on /home and relocated all
the user directories to there so the OS could consume all the space on both
disks and grow to THREE WHOLE MEGABYTES (ooooh!).
znoodl
2015-11-16 17:28:19 +08:00
本来就不是 uaer ,用户的在 home 下, usr 一般放程序和文档相关,是共用的, opt 后来添加进去做安装程序用的
abscon
2015-11-16 17:37:50 +08:00
/usr/home/

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/236542

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX