Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Control jobs for multi-tasking a) Create some jobs i)Type cat command in the terminal, and press ctrl-c to terminate it. Type jobs command and

1) Control jobs for multi-tasking

a) Create some jobs

i)Type cat command in the terminal, and press ctrl-c to terminate it. Type jobs command and you will see nothing. ii) Type cat command in the terminal, and press ctrl-z to stop it (suspend it). Use jobs command and what do you see? iii) Execute some command in the background using the &, for example: nano & iv) Execute another command (for example, man nano) and press ctrl-z to stop it. v) Use the jobs command to see all jobs. Take a screenshot of the terminal which clearly shows all jobs (#8-1).

b) Switch between jobs

i) Use the fg command to bring a stopped job to foreground. By default it is the one with the + sign (see jobs command output) ii) Or we can specifically use fg [job-number] to bring any jobs to foreground. For example, fg 3. See the job number from the jobs command output. iii) Use ctrl-z to stop a job and send it to background iv) Practice switching between the nano job and the man nano job. c) Kill the cat job (terminate it) i) kill %1 ii) Verify using the jobs command. Take a screenshot of the terminal which clearly shows all jobs (#8-2).

3) Write a script to use a timer for countdown. Display the countdown on the screen. Hint: a) Use sleep command b) Use a loop c) Make use of the carriage return to have the output stay on the same line. d) Take a screenshot of the terminal during the countdown (#8-3).

please show me a clear pictures of steps

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

New Trends In Databases And Information Systems Adbis 2019 Short Papers Workshops Bbigap Qauca Sembdm Simpda M2p Madeisd And Doctoral Consortium Bled Slovenia September 8 11 2019 Proceedings

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Robert Wrembel ,Mirjana Ivanovic ,Johann Gamper ,Mikolaj Morzy ,Theodoros Tzouramanis ,Jerome Darmont

1st Edition

3030302776, 978-3030302771

More Books

Students also viewed these Databases questions

Question

(c) What is the resolution of this design? Pg45

Answered: 1 week ago

Question

Describe how to measure the quality of work life.

Answered: 1 week ago

Question

What attracts you about this role?

Answered: 1 week ago