Question: Write a basic file managment system with following capabilities. Suppose the name of the program is myFS. When it executes as below: Figure 6: First


Write a basic file managment system with following capabilities. Suppose the name of the program is myFS. When it executes as below: 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: WXP-XIr-x 1 manal None wxr-xr-x 1 mamal None rwxr-xr-x 1 mamal None wr-xr-x 1 mamal None wxr-xr-x 1 mamal None rwxr-xr-x 1 mamal None wxr-xr-x+ 1 mamal None wxr-xrx1 mamal None wxr-xr-x 1 mamal None rwxr-xr-X 1 manal None wxr-xr-x 1 mamal None rwxr-xr-x 1 mamal None 2645 an 19 2017 a. exe 0 Jan 15 2017 bin 171 Feb 27 2017 bingo, c 62848 Feb 27 2017 bi 187 Feb 28 2017 buffer.c 62657 Feb 28 2017 buffer, exe 0 Jan 15 2017 build-gce 110 an 19 2017 crash1.c 2645 an 24 2017 crash1. exe 891 an 24 2017 crash1, exe. stackdump 131 an 19 2017 crash2. C 63157 3an 24 2017 crash2. exe -X lmamal N 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 quitt 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: Figure 8: Files list should be sorted by last time modified These flags are optional but mutually exclusive. The directory is also optional; if it is omitted, then a default directory of. (the current directory) should be assumed. Every possible combination of command line arguments from the above syntax should be tested. The output should be displayed with fixed-width columns for the size and date. Column orders should be size, then date, then filename. The time last modified should be printed as a 12-character string (e.g., Oct 10 11:37) This can be done by manipulating the returned string from the ctime) function and printing only The file system program should be able to makes a copy of the source file to the destination address. The syntax command could be as below: Write a basic file managment system with following capabilities. Suppose the name of the program is myFS. When it executes as below: 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: WXP-XIr-x 1 manal None wxr-xr-x 1 mamal None rwxr-xr-x 1 mamal None wr-xr-x 1 mamal None wxr-xr-x 1 mamal None rwxr-xr-x 1 mamal None wxr-xr-x+ 1 mamal None wxr-xrx1 mamal None wxr-xr-x 1 mamal None rwxr-xr-X 1 manal None wxr-xr-x 1 mamal None rwxr-xr-x 1 mamal None 2645 an 19 2017 a. exe 0 Jan 15 2017 bin 171 Feb 27 2017 bingo, c 62848 Feb 27 2017 bi 187 Feb 28 2017 buffer.c 62657 Feb 28 2017 buffer, exe 0 Jan 15 2017 build-gce 110 an 19 2017 crash1.c 2645 an 24 2017 crash1. exe 891 an 24 2017 crash1, exe. stackdump 131 an 19 2017 crash2. C 63157 3an 24 2017 crash2. exe -X lmamal N 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 quitt 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: Figure 8: Files list should be sorted by last time modified These flags are optional but mutually exclusive. The directory is also optional; if it is omitted, then a default directory of. (the current directory) should be assumed. Every possible combination of command line arguments from the above syntax should be tested. The output should be displayed with fixed-width columns for the size and date. Column orders should be size, then date, then filename. The time last modified should be printed as a 12-character string (e.g., Oct 10 11:37) This can be done by manipulating the returned string from the ctime) function and printing only The file system program should be able to makes a copy of the source file to the destination address. The syntax command could be as below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
