Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed// 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

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

Databases Organizing Information Digital And Information Literacy

Authors: Greg Roza

1st Edition

1448805929, 978-1448805921

More Books

Students also viewed these Databases questions