Question: 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
Get step-by-step solutions from verified subject matter experts
