Question

Process Management in Linux 4) Control jobs for multi-tasking a) Create some jobs a) Create some...

Process Management in Linux

4) Control jobs for multi-tasking a) Create some jobs

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. [Screenshot] b) Use the “jobs” command to see all jobs.

[Screenshot]

b) Use the “jobs” command to see all jobs.

c) Switch between jobs Use the “fg” command to bring a stopped job to foreground. 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. [Screenshot]

d) Use ctrl-z to stop a job and send it to background Practice switching between the “nano” job and the “man nano” job. i) Kill the “cat” job (terminate it) ii) kill %1 iii) Verify using the “jobs” command. Take a screenshot of the terminal which clearly shows all jobs

0 0
Add a comment Improve this question Transcribed image text
Answer #1

if you have any doubt then please ask me without any hesitation in the comment section below , if you like my answer then please thumbs up for the answer , before giving thumbs down please discuss the question it may possible that we may understand the question different way and we can edit and change the answers if you argue, thanks :)

Add a comment
Know the answer?
Add Answer to:
Process Management in Linux 4) Control jobs for multi-tasking a) Create some jobs a) Create some...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • On your Fedora Linux virtual machine, switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and...

    On your Fedora Linux virtual machine, switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of LNXrocks!. At the command prompt, type sleep 6000 and press Enter to start the sleep com- mand, which waits 6000 seconds in the foreground. Do you get your prompt back after you enter this command? Why? Send the process an INT signal by typing theCtrl+c key combination. At the...

  • Project 1: Implementing a Shell 1 Overview In this individual project you will have to design...

    Project 1: Implementing a Shell 1 Overview In this individual project you will have to design and implement a simple shell command interpreter called mysh. The basic function of a shell is to accept lines of text as input and execute programs in response. The shell must be able to execute built-in commands in a process different from the one executing mysh. 2 Requirements When first started, your shell should initialize any necessary data structures and then enter a loop...

  • What are the exact commands I should use to complete the task? 1. Run command (date;...

    What are the exact commands I should use to complete the task? 1. Run command (date; sleep 45; echo “Done.”; date) > date.out in the foreground (i.e. without &) 2. Suspend it with Ctrl-Z. Pay attention to the number in the [], it will become handy later. This number is the job number of the command that has been suspended. 3. Run command top to display only processes started by you (i.e. associated with your userid). Write down the process...

  • In Linux 1 .Read the man pages for the following commands: man, less, cat, cd, ls,...

    In Linux 1 .Read the man pages for the following commands: man, less, cat, cd, ls, grep, and su (or sudo). Select three (3) of these and describe each in your own words. 2. Launch a GUI program, such as gedit, with and without a trailing ampersand (&). When you launch it without an ampersand, use CTRL+Z to put it into the background and see how the program reacts to mouse clicks. Use fg to return it to the foreground,...

  • You are currently running/debugging a shell script program in the foreground that seems to be in an infinite loop, to terminate/kill the shell script program. 7. (type/enter - control C to send a &#3...

    You are currently running/debugging a shell script program in the foreground that seems to be in an infinite loop, to terminate/kill the shell script program. 7. (type/enter - control C to send a "program interrupt" ) or (contact the sysadmin person to kill your shell script program) 8. The UNIX/Linux exit command entered on the KORN shell command line will exit the shell session properly (best practice). [True / False] When killing a background process with the kill command you...

  • with SCREENSHOTS PLEASE Linux+ Guide to Linux Certification Project 9-4 In this hands-on project, you view...

    with SCREENSHOTS PLEASE Linux+ Guide to Linux Certification Project 9-4 In this hands-on project, you view and manage processes using the top command-line utility. 1. On your Fedora Linux virtual machine, switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of LNXrocks!. 2. At the command prompt, type top and press Enter. 3. From the output on the terminal screen, record the following information: a....

  • Project 4-3: In the following steps, you will learn more about the PING (Packet Internet Grouper)...

    Project 4-3: In the following steps, you will learn more about the PING (Packet Internet Grouper) utility, which can be used on a network running IPv4 to verify that TCP/IP is configured correctly and communicating with the network. A ping test is typically the first thing network professionals try when troubleshooting a TCP/IP connection problem. For this project, you can use any type of workstation that's running TCP/IPv4, preferably one connected to the Internet. The output described in the following...

  • This is for a Unix class. Please help me out. I am attaching a skeletal code of the program below, it just needs ti be filled in. Below is a skeletal code of the program. Fork a child process...

    This is for a Unix class. Please help me out. I am attaching a skeletal code of the program below, it just needs ti be filled in. Below is a skeletal code of the program. Fork a child process and then use the parent for reading and the child for writing.  This is just a way of sending and receiving messages asynchronously. /* ************************************************************* * Utility functions * ************************************************************** */ static void usageError(const char * progName, const char *msg) {...

  • Distinguishing Between Inferences and Assumptions To be skilled in critical thinking is to be able to...

    Distinguishing Between Inferences and Assumptions To be skilled in critical thinking is to be able to take one’s thinking apart systematically, to analyze each part, assess it for quality and then improve it. The first step in this process is understanding the parts of thinking, or elements of reasoning. These elements are: purpose, question, information, inference, assumption, point of view, concepts, and implications. They are present in the mind whenever we reason. To take command of our thinking, we need...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT