由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - How to find and delete all hard links to a file (ZZ)
相关主题
[请教]文件输入 (转载)please help: using 'cat' to merge large text files in linux
弱问:如何copy目录下的所有文件到另外一个目录下?sed 和 bash script 求助
gvim diff question用thunar怎么加上delete confirmation?
比较两个文件,把相同的行删除ext3 format, how to set folders undeletable, files are writable?
请教:如何用sed来改变文件中的数字如何
问个关于user/group的粗浅问题rsync question
比较二进制文件How to set Chinese font under UTF-8 encoding?
怎样保证隐私?请问在ubuntu 10.04下可以看ppstream 吗?
相关话题的讨论汇总
话题: file话题: hard话题: links话题: file1话题: delete
进入Linux版参与讨论
1 (共1页)
p*****a
发帖数: 1152
1
http://linuxcommando.blogspot.com/2008/09/how-to-find-and-delete-all-hard-links.html
Deleting a file is deceptively simple. You can simply use the rm command
like this.
$ rm file1
However, if the file has one or more hard links to it, life gets more
interesting. You need to seek and destroy all hard links to the file.
A hard link is essentially another name for a file. Hard links to file1 can
be created as follows:
$ ln file1 file2
$ ln file1 tmp/file3
file2 and file3 become another name of file
w********e
发帖数: 557
2
Neat.
w****g
发帖数: 597
3
good article !

can

【在 p*****a 的大作中提到】
: http://linuxcommando.blogspot.com/2008/09/how-to-find-and-delete-all-hard-links.html
: Deleting a file is deceptively simple. You can simply use the rm command
: like this.
: $ rm file1
: However, if the file has one or more hard links to it, life gets more
: interesting. You need to seek and destroy all hard links to the file.
: A hard link is essentially another name for a file. Hard links to file1 can
: be created as follows:
: $ ln file1 file2
: $ ln file1 tmp/file3

1 (共1页)
进入Linux版参与讨论
相关主题
请问在ubuntu 10.04下可以看ppstream 吗?请教:如何用sed来改变文件中的数字
rsync error问个关于user/group的粗浅问题
Can we undo operations done in a terminal, for example, file deletion through rm?比较二进制文件
sed: how to delete characters between pattern1 and pattern2 ?怎样保证隐私?
[请教]文件输入 (转载)please help: using 'cat' to merge large text files in linux
弱问:如何copy目录下的所有文件到另外一个目录下?sed 和 bash script 求助
gvim diff question用thunar怎么加上delete confirmation?
比较两个文件,把相同的行删除ext3 format, how to set folders undeletable, files are writable?
相关话题的讨论汇总
话题: file话题: hard话题: links话题: file1话题: delete