Gice

Technology and General Blog

A procedure is an instance of a jogging system. Any plan you execute in a Linux shell spawns a new method which is identifiable working with a method title and a Unique Procedure ID. As a method administrator, you will need to have to be  acquainted with the command for controlling processes in a Linux program

This article will concentrate on career command commands, allowing you to send processes in the qualifications and bringing history processes to the foreground.

How to Operate a Linux Course of action in the Background

To operate a procedure in the history in Linux, use the ampersand symbol &. For illustration, to start off the calculator in the track record:

Executing the course of action in the track record gives an output with two values. The initially price, enclosed in square brackets, displays the Career ID, and the 2nd benefit implies the method ID.

How to Send Foreground Linux Procedures to Background

We can also deliver a foreground system to the background using the CTRL + Z shortcut. This shortcut will suspend the approach then, you can use the command bg to ship it to the track record.

For illustration, enable us start out GParted in the foreground (this will stop the shell from executing other commands right up until we terminate the course of action).

Whilst the course of action is working, press CTRL + Z to suspend the approach. That will return our shell prompt, enter the command bg, and this will mail the process in the background as shown:

How To Clearly show History Procedures

To show the processes in the track record, use the employment command.

The work -l command will exhibit the Job ID, Approach ID, system state, and the process name.

How to Mail History Procedures to the Foreground

We can also deliver a background method to the foreground making use of the fg command followed by the %[job id]

Allow us begin by listing the method in the history:

To deliver a method these as GParted, with Job ID, 2 to the foreground, we use the command:

As you can see from the command higher than, this brings the command to the foreground.

Summary

In this tutorial, we reviewed how to manage positions, send out course of action to the background and carry track record procedures to the foreground.

Leave a Reply

Your email address will not be published. Required fields are marked *