Question: 2. Write a shell script checkpath that extracts each directory from the user's PATH and ensures that the directory exists and is readable. Report either

2. Write a shell script checkpath that extracts each directory from the user's PATH and ensures that the directory exists and is readable. Report either error condition or confirm that the directory is correctly configured. Hint: directories in the PATH are separated by a colon (:).

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!