avatar
a*2
1
【 以下文字转载自 Military 讨论区 】
发信人: aspec2 (3 dollar bill), 信区: Military
标 题: 強烈要求google道歉
发信站: BBS 未名空间站 (Fri Jan 20 22:04:07 2012, 美东)
另外搜mainland chinese people有意外驚喜
avatar
ab
2
ln 有 hardlink and symbolic
which link is perfer.
symbolic will span file system.
但是建了一个symbolic,the file size only 29
而一个hardlink,却和原文件一样大
avatar
M*7
3
那你再去查查台巴子和港巴子. 刚查到了一个"台巴子"的, 贴出来给大家乐乐:
"台巴子是指生活在與中國同一個平行世界中的檯灣上的一群畜類動物,這些動物每天
張口就是支那豬,閉口就終國。當然,這只是存在與那個平行世界,與現實世界毫無關
聯。
這些動物的問候同胞(當然他們自己不這麼認為)方式就是去舔別人的「菊花」,也就
是通俗意義上的屁眼,如果正巧對方能夠拉出大糞,在他們的禮節裡就是最高的榮幸,
所以他們整天在喫些能讓自己拉肚子的東西,比如發霉的東西,陰溝裡的水,生滿蛆蟲
的腐肉,爭取讓自己能夠想拉就拉想拉多少就拉多少,但是因為這些東西喫多叻,不容
易控制自己何時能拉出來,所以經常就人路上就拉叻,而周圍人為了得到祝福,就會搶
着去吃,所以他們出門都會帶好湯匙和吸管。"
http://uncyclopedia.tw/wiki/%E5%8F%B0%E5%B7%B4%E5%AD%90
麻烦LZ再去查查港巴子的给大家助助兴, 呵呵!
avatar
s*l
4
Symbolic link is a softlink, which means once you delete the original
file the link is unusable; for hardlink, even if you delete the original file
the link "file" is still there with the complete contents unchanged.
symoblic link is just a symbol
hardlink is a new inode pointing to the real data in harddisk.
both won't used more space than a "tag", but symbolic link
can refer to a folder, hardlink can only point to a file link thing.

【在 ab 的大作中提到】
: ln 有 hardlink and symbolic
: which link is perfer.
: symbolic will span file system.
: 但是建了一个symbolic,the file size only 29
: 而一个hardlink,却和原文件一样大

avatar
I*t
5
楼主看到别人的屁股,心理一阵欣喜:我的脸比他干净多了。
avatar
bz
6
symbolic link is like an alias
hard link is like a copy.

【在 ab 的大作中提到】
: ln 有 hardlink and symbolic
: which link is perfer.
: symbolic will span file system.
: 但是建了一个symbolic,the file size only 29
: 而一个hardlink,却和原文件一样大

avatar
c*t
7
Conventional users should use the symbolic link as it is easier
to maintain. Hardlinked files are for system files.

【在 ab 的大作中提到】
: ln 有 hardlink and symbolic
: which link is perfer.
: symbolic will span file system.
: 但是建了一个symbolic,the file size only 29
: 而一个hardlink,却和原文件一样大

avatar
m*e
8
Use Symlink whenever you can.
In practice hard link is rarely used.
once you create a hard link, it's indistinguishable from the original.
it's 和原文件一样大, because they are exactly the same *one*, not because
it's a copy.

【在 ab 的大作中提到】
: ln 有 hardlink and symbolic
: which link is perfer.
: symbolic will span file system.
: 但是建了一个symbolic,the file size only 29
: 而一个hardlink,却和原文件一样大

avatar
s*g
9
symlink和 windows 的 shortcut 一样.
hardlink 是独有的. 大概原理是这样: Unix里面
用inode来表示一个文件存储空间. 当你创建一个
文件的时候, 系统分配给你一个 inode number.
然后你生成一个 hardlink, 也会指向同一个 inode.
删除文件的时候, 系统会检查有多少个 hardlink
指向这个 inode. 如果只有一个, 把文件彻底删掉.
如果多于一个, 就只删掉一个 hardlink.
明白了这个道理, 看 perl 程序的时候, 发现删除
文件的函数叫做 unlink(), 也就不奇怪啦.

【在 ab 的大作中提到】
: ln 有 hardlink and symbolic
: which link is perfer.
: symbolic will span file system.
: 但是建了一个symbolic,the file size only 29
: 而一个hardlink,却和原文件一样大

avatar
h*a
10
Unix system calls for deleting is also "unlink"

【在 s*****g 的大作中提到】
: symlink和 windows 的 shortcut 一样.
: hardlink 是独有的. 大概原理是这样: Unix里面
: 用inode来表示一个文件存储空间. 当你创建一个
: 文件的时候, 系统分配给你一个 inode number.
: 然后你生成一个 hardlink, 也会指向同一个 inode.
: 删除文件的时候, 系统会检查有多少个 hardlink
: 指向这个 inode. 如果只有一个, 把文件彻底删掉.
: 如果多于一个, 就只删掉一个 hardlink.
: 明白了这个道理, 看 perl 程序的时候, 发现删除
: 文件的函数叫做 unlink(), 也就不奇怪啦.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。