Sender: zhllg (r0bertz a Gentoo D org), email area: linuxdev
Title: Re: Is unlink the file to be deleted in Linux?
Mail station: Shui muCommunity(Tue Oct 14 23:34:50 2008), Station
[In testking (don't fuck your time !) As mentioned in the masterpiece :]
: Rm/My/file is actually unlink (/My/file )?
Creating a file is to allocate an inode, and then allocate space for the file on the disk, so that the pointer in the inode points to this
And create a directory item in a special file such as a directory. The content is the file name-> inode number.
To create a hard connection, create a directory item in the corresponding directory, but do not create a new inode. The inode number is the file to be pointed.
Inode Number of the component
Delete is to delete the directory, that is, to remove the connection between the file name and inode, so it is called Unlink.
After the last directory item is deleted, no file can access this inode, And the inode can be re-accessed.
Allocated,
--
ZHANG Le, Robert
Http://www.gentoo-cn.org
Http://r0bertz.blogspot.com
Http://zhllg.spaces.live.com
Http://www.szlug.org
※Source: · Shui Mu community http://newsmth.net · [from: 223796.160. *]