Question: This program needs to be programmed in C. Please include picture of code working properly in the terminal. Write a basic is myFS. When it

This program needs to be programmed in C. Please include picture of code working properly in the terminal.

This program needs to be programmed in C. Please include picture of

code working properly in the terminal. Write a basic is myFS. When

Write a basic is myFS. When it executes as below: file managment system with following capabilities. Suppose the name of the program Figure 6: First command format The program should provides the file listing of the given directory. The program should list the filename, file size, and time last modified for each file within the directory. The list is shown below rwxr-xr-x 1 mamal None drwxr-xr-x+ 1 mamal None rwxr-xr-x 1 mamal None rwxr-xr-x 1 mamal None rwxr-xr-x 1 mamal None rwxr-xr-x 1 mamal None rwxr-xr-x+ 1 mamal None rwxr-xr-x 1 mamal None rwxr-xr-x 1 mamal None -rwxr-xr-x 1 mamal None rwxr-xr-x 1 mamal None rwxr-xr-x 1 mamal None rwxr-xr-x 1 mama 62645 Jan 19 2017 a.exe 0 Jan 15 2017 bin 171 Feb 27 2017 bingo. c 62848 Feb 27 2017 bi exe 187 Feb 28 2017 buffer.c 62657 Feb 28 2017 buffer.exe 5 0 Jan 15 2017 build-gcc 110 Jan 19 2017 crash1.c 62645 Jan 24 2017 crash1.exe 891 Jan 24 2017 crash1.exe.stackdump 131 Jan 19 2017 crash2. 63157 Jan 24 2017 crash2. exe l None 885 Jan 24 2017 crash2.exe. stackdump Figure 7: Files list with their properties. The program should provide the user with the option to sort the listing based on filename, on file size, or on time last modified. The program should run once and quit (it does not loop). The syntax (usage) for the program should be where -s indicates sort by file size and -t indicates sort by time last modified. For example myFS 1s -1-t /home

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!