Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please code the program in C. Write a basic is myFS. When it executes as below: file managment system with following capabilities. Suppose the name
Please code the program in C.
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started