![]() But the contents of the old file still sit in that space. In other words, the space that was used by the file is now free to be used by other files. ![]() This marks the space on the hard drive that the file used to occupy as unused. Imagine you walk into a library and go through the card index, find a book’s catalog card, and rip it up. ![]() When you delete a file with rm, the filesystem frees up the appropriate inode and adjusts the directory file. One that holds the names and inode numbers of the files that the directory contains. The name of the file, its position on the hard drive, what attributes and permissions it has, and so on are all stored within an inode. A directory is no more than a file itself. These are the data structures within the filesystem that hold the metadata regarding the files. It’s all down to the way your filesystem uses inodes. Deleting a file doesn’t actually remove it from your hard drive. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |