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 | | 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
|
|