Answered step by step
Verified Expert Solution
Question
1 Approved Answer
// please leave comments so i can learn above program is myls. Task 3 (25 points) Modify myls.c so it print out additional information along
// please leave comments so i can learn above program is myls.
Task 3 (25 points) Modify myls.c so it print out additional information along with the file name: number of hard link, size of the file and the last modified date. You will need to use statO system call. If no path is given, list the content of the current working directory. Also your program should ignore the current working directory () and the parent directory (..) Your program should work like this hb117@uxb4: $ gcc-Wall myls.c -o myls hb117@uxb4:~$ ./myls myls myls.c 1 hb117@uxb4:~$ /myls foobar foo bar newfoo 2 8831 406 Sun Apr 17 12:36:33 2016 Sun Apr 17 12:35:33 2015 2 41787 Sun Apr 10 10:53 2017 41433 Sun Apr 10 10:54 2017 41787 Sun Apr 10 10:53 2017Step 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