Chapter 3: Process Management

Foreword

We recommend that you do not use AI to do the exercises because you are in the learning phase.

Introduction

In a Linux system, process management is a fundamental aspect of system administration and application operation. A process is simply a program that is currently running. Linux, like all modern operating systems, uses processes to execute tasks and organize work.

Prerequisites (Repetition is educational XD)



General information

A process is an instance of a running program. It can be as simple as a command launched in the terminal or as complex as a background application. Each process has its own memory space, its own unique identifier (PID), and information about its execution status. If process 2 was launched by process 1, it is called a child process. The process that launched it is called the parent process.
There are different types of processes in Linux:

TLDR (Quick summary)

Let’s type a little

To test πŸ‘¨πŸΎβ€πŸ’»πŸ‘©πŸΎβ€πŸ’»:

PID    TTY          TIME CMD
380123 pts/3    00:00:00 bash
427931 pts/3    00:00:00 ps

Below is an explanatory table. | Column | Meaning | Example | |β€”β€”β€”|β€”β€”β€”β€”β€”|β€”β€”β€”| | PID | Unique identifier assigned by Linux to each process. | bash: 380123
ps: 427931 | | TTY | Terminal to which the process is attached. pts/* are pseudo-terminals, often opened during an SSH connection or a graphical terminal. | pts/3 | | TIME | CPU time used by the process since its launch. | 00:00:00 (minimum time for fast or inactive processes) | | CMD | Command or program that launched the process. | bash (interactive shell)
ps (process display command) |


This result raises two (2) questions:

Training βš”οΈ

Exercise 1

πŸ‘‰πŸΎ Click here