Question: Note: Every time, run the clear command before taking a screenshot of your machine terminal. YOUR TERMINAL PROMPT should be clearly shown. Question# 1 :

Note: Every time, run the clear command before taking a screenshot of your machine terminal. YOUR TERMINAL PROMPT should be clearly shown.
Question#1: Use the find command to compile a list of all directories in your system (under the 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.
Question#2: run vi forever in the terminal and write the following script:
while true
do echo hi Comp311 students> out
done: wq!
Question#3: Run the command forever in the background using &.
Question#4: Run the command forever in the foreground, suspend it with CTRL +z, and 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.
Question#5: Run the command forever four times in the background using &, then use the kill command to terminate the process by its job number. Repeat this task but kill the process by specifying its PID.
1
Question#6: Run the command forever in the background using &, then use the kill command to suspend (stop)the process. Finally, use the bg command to resume running the process.
Question#7: Suppose there are many forever processes in the background, for example, more than 50 processes in the jobs. We need to kill these processes at once. All processes must be killed unclearly, and the terminal mustn't be killed, terminated, or hanged. (Justify your command line)
Question#8: Create a variable called myprj2var in your current bash shell with value project, then make sure that the variable myprj2var is passed from bash to ksh when you run a ksh shell under your bash shell.
Question#9: Create a Prj2 directory under your home directory, add the directory to the end of your current PATH environment variable (temporarily) and display the value of the PATH variable on the screen.
Question#10: What is the difference between nice and renice commands? Give a usage example for each of them.
Question 2:
Using the given prj2_passwd file, use your system to write a single command to do each of the following (Write the number of the question and the answer to a file called Question2_answers). You MUST also take screen captures or images clearly showing the commands you executed on your system for each question below and the results displayed on the screen. The screen captures, or images should be included in sequence in a Word file called Question2 images.
 Note: Every time, run the clear command before taking a screenshot

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!