Question: Write executable scripts to show and execute the following requests: Use the learned commands and create the following structure in the path /home/users: 1. Create

Write executable scripts to show and execute the following requests:

Use the learned commands and create the following structure in the path /home/users:

1. Create a directory with the name 'Name' in the path /home/users 2. Create a directory with the name 'Last_Name' in the path /home/users 3. Inside both the created directories also create the following directories: a) directory 'Directory1' b) directory 'Directory2' c) directory 'Directory3' d) directory 'Directory4' 4. In each of the created subdirectories(Directory1,..., Directory4) create a file with name Absolute_Path.txt -Give a certain command the will write in the first line of the file the following sentence. "The absolute path of this file is: ". Use a variable for Path.(Directory1) -Give a certain command the will write in the first line of the file the following sentence. "The absolute path of this file is: ". Use a variable for Path.(Directory2) -Give a certain command the will write in the first line of the file the following sentence. "The absolute path of this file is: ". Use a variable for Path.(Directory3) -Give a certain command the will write in the first line of the file the following sentence. "The absolute path of this file is: ". Use a variable for Path.(Directory4)

5. Use a certain command to move the 4 files with name 'Absoulute_Path' from 'Name' directory to the 'Last_Name' directory in the correct subcategories.

6. Change the access of the files that only the user with your name can have access to read, write and execute the files, and not other group users or other users.

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!