Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions