Question: Please solve all the question on Linux or ubuntu solve all the question in this project Question 1 Write the proper Linux command(s) to perform
Please solve all the question on Linux or ubuntu
solve all the question in this project

Question 1 Write the proper Linux command(s) to perform each of the following tasks. For each task record the task number and the corresponding answer (i.e., commands) in a file named (q1_answers). (Task1) Use find command to compile a list of all directories in your system (under root '/' directory). The command must redirect the output so that the list of directories ends up in a file called directories.txt and the list of error messages in a file called errors.txt. (Task2) Try the command sleep 5. What does the command do? (Task3) Run the command sleep 5 in background using &. (Task4) Run the command sleep 80 in foreground, then suspend it with CTRL+z, then put it into the background using bg. Next, run the command jobs, then the command ps. Finally, bring the job back into the foreground with fg. (Task5) Run the command sleep 30 in background using &, then use kill command to terminate the process by its job number. Repeat this task but this time kill the process by specifying its PID. (Task6) Run the command sleep 40 in background using &, then use kill command to suspend (stop) the process. Finally, use the bg command to resume running the process. (Task7) Start a number of sleep 60 processes in background, then terminate them all at the same time using the pkill command. (Task8) Create a variable called myprj2var in your current bash shell with value good, then make sure that the variable myprj2var is passed from bash to ksh when you run a ksh shell under your bash shell. (Task9) Add directory /etc to the beginning and end of you current PATH environment variable. (Task10) Give a usage example for each of the commands: nice and exec.
Step by Step Solution
There are 3 Steps involved in it
sh Task 1 find type d 2 errorstxt directoriestxt Task 2 sleep 5 The command makes the shell sleep fo... View full answer
Get step-by-step solutions from verified subject matter experts
