Question: operating System 1. Type the following commands using a text editor and save it as a yourname.sh (Example: ahmad. sh). a) Execute the script and

 operating System 1. Type the following commands using a text editorand save it as a yourname.sh (Example: ahmad. sh). a) Execute thescript and draw a tree structure that contains created directories and files.The parent node of the directory begin with SHOME directory. [4 marks]

Print screen the script that you type; Then draw the tree b)

operating System

1. Type the following commands using a text editor and save it as a yourname.sh (Example: ahmad. sh). a) Execute the script and draw a tree structure that contains created directories and files. The parent node of the directory begin with SHOME directory. [4 marks] Print screen the script that you type; Then draw the tree b) Write an interactive bash script that will read a type of file extension, display all those files, and count the number of files. To validate your script, display c program files, and enter " c" as the input to the bash script. [4 marks] Print screen the bash script you type and run 2. The following Figure 1 illustrates a tree structure of some directories and files. a) Write a bash script (called myname2a.sh) that will produce directories and files as in Figure 1. Each text files contain its filename without the underscore character. For example: text file Project Manager contains Project Manager). [4 marks] Print screen the bash script you type and run b) Complete the following table by writing the access control of directories or files that were produced. Given is the access control for directory called book. c) Write another bash script (called myname2c.sh) that will change the access control of the directories and files based on the following information: [4 marks] Print screen the bash script you type and run Complete the following table by writing the access control for each directory or file after executing the bash script in question 2(c)). [2 marks]

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!