Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please give me answer properly how can i modify this ls according to instructions Introduction Project 1 will cover the following: - Modifying the Is
please give me answer properly how can i modify this ls according to instructions
Introduction Project 1 will cover the following: - Modifying the Is command - Implementing the sleep command - Implementing the uniq command - Implementing the find command This project is a total of 100 points. As we are creating simplified versions of actual Unix commands, please test out the actual Unix commands that you are unfamiliar with before you begin to develop your own. NOTE: Make sure your code compiles using the Makefile! You will automatically lose 50% of the points if your code does not compile or does not add the command to xv6. The remaining points will be up to the discretion of the person grading the assignment based on whether what exists seems to properly implement the expected functionality. Files to Edit and Submit: Modify the Is command in Is.c, implement the sleep, uniq, and find commands in files named sleep.c, uniq.c, and find.c, respectively. Modify the Makefile to compile xv6 with the additional files. Include a Project1-README file with your group members, the system environment you used to develop/test this code, and any additional information about your implementation or compilation that might be helpful for us in grading. You will also take screenshots of your outputs for each condition. Submit your xv6-public directory as a compressed tar.gz file. See the submission section at the end for details. Academic Dishonesty: We will be checking your code against other submissions in the class for logical redundancy. If you copy someone else's code and submit it with minor changes, we will know. These cheat detectors are quite hard to fool, so please don't try. We trust you all to submit your own work only; please don't let us down. If you do, we will pursue the strongest consequences available to us. Getting Help: You are not alone! If you find yourself stuck on something, contact the course staff for help. Office hours are there for your support; please use them. If you can't make our office hours, let us know and we can talk over email or schedule a oneon-one meeting. We want these projects to be rewarding and instructional, not frustrating and demoralizing. But, we don't know when or how to help unless you ask. Modifying Is (15 points) Currently, the Is command simply lists all files and subdirectories in the current directory. We'll modify it to be a bit more readable. We will make the following changes: 1. Automatically hide hidden files and directories (those that start with .). [5 points] 2. Include a "/" at the end of directory names so that we can differentiate them more easily from regular files. [5 points] 3. Add a "-a" flag to show hidden files and directories. [5 points] You will additionally lose points if the behavior of Is changes in any way beyond this. For example (but not limited to): - Is does not terminate successfully ( 1 point) - Extraneous output to the terminal such as debug statements ( 1 point; more if there is so much extra output that it impedes grading)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