Answered step by step
Verified Expert Solution
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#: 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#: run vi forever in the terminal and write the following script:
while true
do echo hi Comp students out
done: wq
Question#: Run the command forever in the background using &
Question#: Run the command forever in the foreground, suspend it with CTRL 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#: 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.
Question#: Run the command forever in the background using & then use the kill command to suspend stopthe process. Finally, use the bg command to resume running the process.
Question#: Suppose there are many forever processes in the background, for example, more than 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#: Create a variable called myprjvar in your current bash shell with value project, then make sure that the variable myprjvar is passed from bash to when you run a shell under your bash shell.
Question#: Create a Prj 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#: What is the difference between nice and renice commands? Give a usage example for each of them.
Question :
Using the given prjpasswd 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 Questionanswers 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 Question images.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started