Question: Part 5: File System Management with Scripts (3 marks) Now that you have a plan for the storage there are a few housekeeping matters to
Part 5: File System Management with Scripts (3 marks) Now that you have a plan for the storage there are a few housekeeping matters to take care of because users tend to be somewhat liberal with their storage. Write a script to make sure that user home directories are owned and only accessible by the owner. The script can assume home directories are descendants of /users. Finally, write a script which takes as an argument the filesystem name e.g. /home and looks for objects which do not belong i.e. end with the extension a. mp3 b. aac c. mp4 d. mov e. avi f. vid When these files are found a summary should be produced including where they are and the size. The script should also remove the files.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
