Question: // 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// 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 2017

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!