TSS Assignment-1t

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Addis Ababa University

Addis Ababa Institute of Technology


School of Electrical and Computer Engineering

[Software Tools and Techniques]

Assignment-1

By:Habtamu Wondim
ID:GSR/6072/13
Instructors Name: Kinde Mekuria
Date of submission:Monday April 26, 2021
Write the instructions you would use to accomplish the following tasks and take a snapshot of
your Terminal screen after you have executed every command.

1. Open your terminal and create a text file with your name inside the home directory

2. Open the file you have created in step one using vim

2.1. write your name, your father’s name, your Grandfather’s name and your ID in it

2.2. save and exit the file

3. Copy the file you have created and give it your father’s name

4. Schedule for the copied file to be deleted at the time of your choosing

5. Create a folder with your name inside your home directory

6. Go into the folder you have created

7. Create a shell file with your father’s name

8. Open the shell file you have created in the previous step and

8.1. Write a command that would move the file you have created in step one into the
directory or folder you created in step five
8.2. Write a command that would create a soft link and a hard link of the file you moved in
step 8.1. with your grandfather and great grandfather name respectively

8.3. Write a command that would Archive the text files in this folder/directory

9. Save and exit shell file with your fathers’ name

10. Create a shell file with your mother’s name

11. Open the shell file you have created with your mother’s name and

11.1. Write a command that would change the privileges for the shell file you have created in
step seven with your father’s name to read-write-execute for you the owner and groups
but only read write for everybody else
Before proceeding to the next question, add the command sleep 60 at the end of the bash script
file you have created in step seven:

11.2. write a command that would run the above script.

11.3. Write a command that would unzip the zipped file you have created in step 8.3

11.4. (Bonus) Write a command that would kill the process running the bash file with your
father’s name at step 11.2.
Hint : - at step 11.2 run it in the background using ‘&’ at the end
- Get the process id of the last background process and store it in a variable

12. Kill the process with the ID stored in the variable Save and exit shell file with your mother’s name

13. List all the files in the folder created at step five with all their information
14. Write a command that would give the output of step 13 to a command that would select only the
one file with your mother’s name

15. Run the file with your mother’s name without changing the privilege of the file using an
appropriate command

You might also like