Creating and deleting files are important tasks that our computers do every day. Different systems, like NTFS, ext4, and APFS, help manage these tasks.
Creating a File:
Gathering Basic Info: When you make a file, the computer saves important details like the file name, size, who can see it, and when it was made.
Saving Space: The computer then sets aside space on the disk for the file. For example, NTFS has different sizes it can use, which can be anywhere from 512 bytes to 64KB.
Keeping Track: In some systems, like FAT, there is a list called the File Allocation Table. This list helps the computer know which parts of the disk are being used for the file.
Deleting a File:
Marking as Available: When you delete a file, the computer usually just marks it as free instead of erasing it right away.
Erasing Data: Eventually, the computer might delete this space for good. Studies show that almost 40% of deleted files can still be recovered until they're overwritten.
Cleaning Up: Some systems, like ext4, keep the system tidy by erasing deleted data in the background from time to time.
Fun Facts:
A file system can manage millions of files! For example, ext4 can support file systems up to 64 TB and can have up to 32 million files in one folder.
On average, it takes about 10 to 20 milliseconds to create a file. Deleting a file is usually quicker, taking around 5 to 10 milliseconds when conditions are good.
Creating and deleting files are important tasks that our computers do every day. Different systems, like NTFS, ext4, and APFS, help manage these tasks.
Creating a File:
Gathering Basic Info: When you make a file, the computer saves important details like the file name, size, who can see it, and when it was made.
Saving Space: The computer then sets aside space on the disk for the file. For example, NTFS has different sizes it can use, which can be anywhere from 512 bytes to 64KB.
Keeping Track: In some systems, like FAT, there is a list called the File Allocation Table. This list helps the computer know which parts of the disk are being used for the file.
Deleting a File:
Marking as Available: When you delete a file, the computer usually just marks it as free instead of erasing it right away.
Erasing Data: Eventually, the computer might delete this space for good. Studies show that almost 40% of deleted files can still be recovered until they're overwritten.
Cleaning Up: Some systems, like ext4, keep the system tidy by erasing deleted data in the background from time to time.
Fun Facts:
A file system can manage millions of files! For example, ext4 can support file systems up to 64 TB and can have up to 32 million files in one folder.
On average, it takes about 10 to 20 milliseconds to create a file. Deleting a file is usually quicker, taking around 5 to 10 milliseconds when conditions are good.