Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is the coding I've got so far: http://pastebin.com/FvSxJmvt If anyone could help with editting this code to have the same output as the assignment

image text in transcribedimage text in transcribed

This is the coding I've got so far: http://pastebin.com/FvSxJmvt

If anyone could help with editting this code to have the same output as the assignment says, that'd be wonderful. The "-R" and "-l" command do not work for some reason...

CS 3 41: Operating Systems Program 3 Due: April 4, 2016 Goals The goals of this project are 1. to learn how to use file system calls 2. to implement a simple version of the ls" command 3. to practice simple systems programming in C You may use any standard C libraries. Please refer to the top of this document for the due date. Remember that your program must be submitted by 11:59:59pm on the due date, or else it will be considered late and will not be accepted. You must use the course website's Drop-Box area to submit your completed program. Please be sure to include a Makefile which, by typing "make", should build the executable, with the name myls. Your program files should include any source code files you created - make sure that your code is properly indented and documented. Also include a brief README file that explains your design and reports on the working status of your code. Assignment In this assignment, you are to write a C program - let's call it myls.c - that mimics the ls command. Your program should implement the following 1s options: 1. 1s with no option: list the names of files and directories in the current directory 2. 1s -i option: list the names and i-node numbers of files and directories in the current directorv 3. 1s -1 option: list the names of files and directories in long format 4. ls -R option: recursively list the names of all files and directories in the current directory; that is, the command is also applied to the directories within the current directory, the directories within those directories, and so forth Make sure your executable program is named myls and not 1s so that there's no confusion over which version of the program you are running An example run is shown on the next page. If you're not familiar with these options, you should familiarize yourself with them. Also, you should look at the Linux man pages for their exact descriptions. Sample filel file2 Research Teaching paper paper2 paper3 filel paperl

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_2

Step: 3

blur-text-image_3

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 Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions

Question

Which of the following potential drawback of AI

Answered: 1 week ago

Question

What is meant by Career Planning and development ?

Answered: 1 week ago

Question

What are Fringe Benefits ? List out some.

Answered: 1 week ago

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago