Question: In this project, you are to write a program proj7.c that should list the files in the directory given in the first command line argument.



In this project, you are to write a program proj7.c that should list the files in the directory given in the first command line argument. The current directory should be used if not command line argument is given. Do not include and "s and files whose name begins with a in your listing. You should format the output roughly as follows: Columns 1-10: The read, write, execution permissions for owner, group, and others Column 11: blank Columns 12-14: the number of links (rightjustified) Column 15: blank Columns 16-23: the owner name ofthe file Column 24: blank Column 25-32: the group name of the file Column 33: blank Columns 34-41: the size of the file in bytes (right justified) Column 42: blank Columns 43-54: the date and/or time the file was last modified Column 55: blank Columns 56-7: the name of the file Your program must produce a listing similar (without total line to what you get with the command ''ls -l'. You can assume that at most 512 files are in a directory. Your program must be well documented
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
