Question: Write a bash shell script that emulates the basic functionality of the ls command for the present working directory. Specifically for each object in the

Write a bash shell script that emulates the basic functionality of the ls command for the present working directory. Specifically for each object in the directory your script must:

determine & display whether it is a directory, file, or other

determine & display the file owner's permissions for directories and files

utilize one or more Linux functions to minimize redundancy.

add error handling for SIGINT

hint - Use test commands for testing files within the loop (man test)

Example of the script output:

[jalcorn@blanca]$ ./quiz1 /home/jalcorn/hwfile is a file with owner permissions: rw- /home/jalcorn/hwscript is a file with owner permissions: rwx /home/jalcorn/testdir is a directory with owner permissions: r

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!