Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Quesi. Use the find command to compile a list of all directories in your system ( under the root' / ' directory ) . The

Quesi. 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.
while true
do echo hi Comp311 students> out
done: wq!
3. O-annn #? Run the command forever in the background using &.
4. Questand 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.
5. O... Dun 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
6. Quesin..." ~~ 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.
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)
8. Quen a 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.
a. 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.
10. Questio -410. What is the difference between nice and renice commands? Give a usage
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