Question: Write a complete Unix program in C that reports the information of all files under the current directory (not include the files under any subdirectory).

Write a complete Unix program in C that reports the information of all files under the current directory (not include the files under any subdirectory). The information for each file consists of the file name and its i-node number, one line for each file. Finally, print out the total number of files under the current directory.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is a complete Unix program in C that achieves the specified functionality include include inclu... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!