Why is the system call to delete a file called unlink () instead of delete ()?

What will be an ideal response?


The name unlink is based on what the operation is doing. When you delete a file from a directory,
Linux doesn’t actually delete the data, it merely removes the link in the specified directory that
points to the data blocks that make up the data in the file. Linux keeps a link count for each file to
show how many different links point to a file’s data blocks. When the number of these links drops
to zero (i.e. there are no directory entries that point to data), then the data blocks are released for
reuse (i.e. the data is deleted).

Computer Science & Information Technology

You might also like to view...

You use Query Design View to add ____ to limit the number of records shown in the resulting datasheet.

A. criteria B. posts C. versioning D. indices

Computer Science & Information Technology

Large organizations use ________ systems because they bring together many types of business functions into one software solution.

A. ERP B. IDE C. SDLC D. CAD

Computer Science & Information Technology

Some ERP systems integrate ________ capabilities that allow sales departments to manage call centers, support customers, and keep track of sales commissions.

A. IDE B. CRM C. vertical market D. project management

Computer Science & Information Technology

How can the condition, when you reach the end of the string, you have matched each “{”, be verified in a program that uses a stack to check for balanced braces?

What will be an ideal response?

Computer Science & Information Technology