Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Minimize the following DFA:

Answered: 1 week ago