Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Change Permission for All Directory. Write a shell script chmodAllDirectories, that will change the permission of all directories inside a given leading directory. The command

Change Permission for All Directory. Write a shell script chmodAllDirectories, that will change the permission of all directories inside a given leading directory. The command chmodAllDirectories newpermission maindirecroty should set a new permission to all directories inside a given leading directory. The script should set a new permission for all directories inside the given directory. If there is no argument, or if the maindirecroty is not a directory or the given permission is not supported, the script should print an error message to stderr and exit. by using for loop in linux script shell

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

More Books

Students also viewed these Databases questions