Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The goal o f this project i s t o practice o n basic library functions for reading directories i n Linux. You will implement
The goal this project practice basic library functions for reading directories
Linux. You will implement a program that lists all the files a given directory.
You can start from scratch use the version attached.
Your program should take two possible command line arguments. For example
ocument
The first argument option started with a dash Legitimate options are
and
giving, you need list all files including hidden file start with
giving, you need list one file per line with detailed information type,
permission, link number, user, group, size, modification time, and file name The
format should the same the real
dash option given, you only list file names with hidden file excluded.
The second argument a path a directory. present, list
the files the specified directory. second argument given, list the files
current directory.
Your project submission should include the implementation files header file
Makefile and a README file.
All the file names need listed ascending order. You can compare the outputs
with real
Important:
You will need your own research how use masking, getpwuid
getgrgid ctime decode the file type, permission, user name, group name,
modification time the structure.
You can write your own sorting function research how use qsort
III. Grading Criteria:
Please make sure your program compiles, otherwise your submission will not
graded, and you will receive zero.
Point deduction rule:
Compile warning: points each.
Minor error: such not meeting the assignment inpuutput requirement,
points each.
Major error: examples include, infinite loop, runtime errors, any segmentation fault,
points each.
Default list function argument:
List the files the specified directory:
a option:
option:
Ascending order sorting:
README:
Extra credits: option details for all files including hidden files, check for
reference
Submission:
Each student submits one copy the source code.
Create a folder and name name$ mkdir
Copy all your source code the above folder code only, binary files!
Edit a README. file text format only, not use Microsoft Word, use notepad
Windows use nano Linux and provide the following information:
Project description
Compiling instruction any
A sample test run any
Existing bugs not finished
the folder your account grail.
grail, the parent directory the folder you created, and run
that your folder
turnin@cis
You should see a list files followed a message like the following:
You are about turnin files for for cis
you want continue?
Answer yes submit answer you not want submit.
You should now see list the files being submitted, followed :
TURNIN cis COMPLETE!
You can submit more than one time. Your most recent submission will always
automatically overwrite the previous one.
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