Question: writting a c program that does the following: example output Use Descriptor I/O operations to open the file specified as a command line argument and

Use Descriptor I/O operations to open the file specified as a command line argument and read at least one byte from the sequence of bytes before Hard Coded Pause Point 1. Use file system operations to remove the i-node entry for the file opened in between Hard Coded Pause Point 1 and Hard Coded Pause Point 2. You may assume the file specified on the command line will have an on disk reference count of 1. Close Descriptor 1/0 operations to the open file after Hard Coded Pause Point 2. Note: To correctly test this portion of the implementation you should perform the operations in (run your program from) a section of the file system that is not an NFS (Network File System); in a department UNIX lab environment your home directory and all subdirectories) are an NFS section of the file system. The /tmp/directory on any department environment is not an NFS section of the file system; /tmp/ is typically not an NFS section on any UNIX system. Any user can create files in /tmp/, the temporary directory Note: If you are successful, the file that you specified as a command line argument will no longer be in the file system on disk. You should test this feature with that in mind. 5./1shiding filel.xxx + Part 1 Pause Point: File appears in Is listing AZ /lsHiding [1] + Stopped $ ls -1 2022 filel.XXX $ fg 1 ./1sHiding Pause Point: File does not appear in ls listing, but still open Az [1]+ Stopped Ishiding s fg 1 ./1sHiding 5 echo 52
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
