Process Management

Red Hat Linux Essentials Process Management, System Configuration, etc.
14 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€48.02
List Price:  €67.23
You save:  €19.21
£39.14
List Price:  £54.79
You save:  £15.65
CA$71.63
List Price:  CA$100.29
You save:  CA$28.65
A$80.06
List Price:  A$112.09
You save:  A$32.03
S$67.51
List Price:  S$94.52
You save:  S$27.01
HK$388.46
List Price:  HK$543.88
You save:  HK$155.41
CHF 44.24
List Price:  CHF 61.94
You save:  CHF 17.70
NOK kr563.34
List Price:  NOK kr788.73
You save:  NOK kr225.38
DKK kr358.57
List Price:  DKK kr502.03
You save:  DKK kr143.46
NZ$88.43
List Price:  NZ$123.81
You save:  NZ$35.37
د.إ183.61
List Price:  د.إ257.07
You save:  د.إ73.45
৳5,964.32
List Price:  ৳8,350.53
You save:  ৳2,386.20
₹4,269.04
List Price:  ₹5,977
You save:  ₹1,707.95
RM224.30
List Price:  RM314.04
You save:  RM89.74
₦77,264.53
List Price:  ₦108,176.53
You save:  ₦30,911.99
₨13,894.99
List Price:  ₨19,454.09
You save:  ₨5,559.10
฿1,708.15
List Price:  ฿2,391.55
You save:  ฿683.40
₺1,759.41
List Price:  ₺2,463.31
You save:  ₺703.90
B$318.75
List Price:  B$446.27
You save:  B$127.52
R937.33
List Price:  R1,312.34
You save:  R375
Лв93.99
List Price:  Лв131.59
You save:  Лв37.60
₩72,848.40
List Price:  ₩101,993.60
You save:  ₩29,145.19
₪182.43
List Price:  ₪255.42
You save:  ₪72.98
₱2,932.41
List Price:  ₱4,105.61
You save:  ₱1,173.20
¥7,857.17
List Price:  ¥11,000.67
You save:  ¥3,143.49
MX$1,008
List Price:  MX$1,411.29
You save:  MX$403.28
QR181.52
List Price:  QR254.14
You save:  QR72.62
P693.18
List Price:  P970.50
You save:  P277.32
KSh6,450.70
List Price:  KSh9,031.50
You save:  KSh2,580.80
E£2,541.20
List Price:  E£3,557.88
You save:  E£1,016.68
ብር6,354.82
List Price:  ብር8,897.26
You save:  ብር2,542.43
Kz45,590.88
List Price:  Kz63,830.88
You save:  Kz18,240
CLP$49,454.60
List Price:  CLP$69,240.40
You save:  CLP$19,785.80
CN¥364.87
List Price:  CN¥510.85
You save:  CN¥145.98
RD$3,040.26
List Price:  RD$4,256.60
You save:  RD$1,216.34
DA6,753.71
List Price:  DA9,455.74
You save:  DA2,702.02
FJ$115.90
List Price:  FJ$162.28
You save:  FJ$46.37
Q384.44
List Price:  Q538.26
You save:  Q153.81
GY$10,442.13
List Price:  GY$14,619.81
You save:  GY$4,177.68
ISK kr6,976.10
List Price:  ISK kr9,767.10
You save:  ISK kr2,791
DH503.31
List Price:  DH704.68
You save:  DH201.36
L920.86
List Price:  L1,289.28
You save:  L368.41
ден2,954.07
List Price:  ден4,135.94
You save:  ден1,181.86
MOP$399.27
List Price:  MOP$559.01
You save:  MOP$159.74
N$928.04
List Price:  N$1,299.34
You save:  N$371.29
C$1,836.54
List Price:  C$2,571.30
You save:  C$734.76
रु6,797.51
List Price:  रु9,517.06
You save:  रु2,719.54
S/185.85
List Price:  S/260.20
You save:  S/74.35
K202.57
List Price:  K283.61
You save:  K81.04
SAR187.71
List Price:  SAR262.82
You save:  SAR75.10
ZK1,381.27
List Price:  ZK1,933.89
You save:  ZK552.61
L239.16
List Price:  L334.85
You save:  L95.68
Kč1,208.85
List Price:  Kč1,692.49
You save:  Kč483.63
Ft19,737.39
List Price:  Ft27,633.93
You save:  Ft7,896.53
SEK kr544
List Price:  SEK kr761.65
You save:  SEK kr217.64
ARS$51,344.11
List Price:  ARS$71,885.87
You save:  ARS$20,541.75
Bs344.88
List Price:  Bs482.86
You save:  Bs137.98
COP$220,596.26
List Price:  COP$308,852.42
You save:  COP$88,256.15
₡25,341.90
List Price:  ₡35,480.70
You save:  ₡10,138.79
L1,268.10
List Price:  L1,775.44
You save:  L507.34
₲389,249.85
List Price:  ₲544,980.94
You save:  ₲155,731.08
$U2,221.61
List Price:  $U3,110.44
You save:  $U888.82
zł204.67
List Price:  zł286.56
You save:  zł81.88
Already have an account? Log In

Transcript

Welcome back friends here in this part we are going to learn about our HCl or linings processes. So, what are processes, you might have seen Windows Task Manager, if you're using Windows, where you can see where various background and foreground tasks that are running on the systems. So, task could be also called as process actually processes are different from task because a certain task may need different process to be executed. So, in Linux, it is very vital to understand what processes are and what are different processes and how we can organize them or control them to perform a better operations and provide different solutions. So let's start. A process is a set of instruction that is loaded into memory.

The numeric process or P ID, the process ID is used for identification of each process UID g ID and SC Linux context determines file system access to different processes. One thing to observe is that in Linux system, there is a process that is parent of all processes, which is called as in it, I am it the init process is starts at the beginning of the OS and executes till the end. If you you also pass various commands were number two in it like in ID zero, which is the init process. And so the system was shut down. If you write in it, the sixth then the system reboots or restarts. So, there are different process you can view information regarding various process with a PS command the PS and provide the number it will show the processes you can also use various arguments.

It shows the process by the current user on the current terminal by default, there are various options minus he would show you all list of all processes, you will allow users to show all process by the user based on each user capital F will print extra information capital H will indent it child processes Oh a small o will show the properties with a properties it could print custom informations and you can use ps3 command for process tree it is a reverse tree. We are the different first process is in it and all the processes are derived from it. To do a practical of these things, so don't worry. You can find a process by using the command PS provide the options and you can use a pipe operator and perform with other commands. You can also use the predefined patterns with P grip GRP. As here, you can also track program names, which are stored in s bin B ID or directory.

There are various signals that could be sent to kill the process or to terminate or perform various operations I've already told you, you need to zero are in it fix. The six and zero are the signals which is numbered and could be used to perform various operations signals are sent directly to process no user interface is required. Programs associate actions with each signal signals are specified by name or number when sent. For example signal 15 the term it terminates cleanly, signal nine will kill the Terminator process image with signal one reread configuration of file system and manual seven was signal show complete list. There are various types of process, one of them is called down payment or background process. When you see the after any name of the process, it is actually demand for example, in it now, so not in it is not a thing like that we could be using anything there is demand right there the hidden process could also be controlled or foreground process are also be controlled.

The scheduling is another thing we can schedule different processes like execution that this process will execute first this will execute next and this will after the after time in case when different processors arrive at the processor or CPU at the same time. So, CPU could not decide to which processor which processor it needs to execute if we do not provide any scheduling or priority So, the priority is affected by the nice value. Linux has provided you the nice value. Nice value with allow you to upgrade our Prioritize a process or D prioritize a process it ranges from a value of minus 20 to 19. But default value of all the processes zero, you can lower the nice process means lower nice value means higher CPU priority the process which have the lower nice value, yes the CPU you can view the priority with with PS minus o command and a nice you can change the nice value by writing the command nice is base minus and provide the number, the nice number and the command and you can also change by using the re nice value.

However, only root access root user may decrease nice values. You can only only increase and you Are any non root users but only root can decrease or prioritize process. There is our interactive process management tools out there. The top is used as a CSI mode and genome System Monitor is used energy wave mode. It has various capabilities, it could display real time process information, it allows you sorting, killing and renaming the processes for your functionalities, then we have job controls for the process. If you have if you have read or learned about operating systems and various process you might be familiar with your controls.

When different process allows to the system CPU at the same time, they are assigned various jobs to be performed. It may occur that a certain process is executing and it is a stop in between To allow other persons to execute in parallel, actually there is nothing like parallel system only one CPU is allowed sorry in single core processors there is no concept of parallelism, but actually multitasking is done. That is because, the processes are allowed and D allowed to assign certain time limit to execute. That is also called a job control processes could also be called as jobs in OSS terminologies. It we can run process in the background, append or ampersand to the command line. You can temporarily halt a running program or stop.

You can use Ctrl Z to send signal 19 that is a stop. You can manage background or suspend job, manage background or sub suspended jobs. You can list job numbers and names with jobs GPS command. You can resume the bag in the background, the process in the background by using the background command. You simply write BG and provide the job number. job number is the process ID.

You can resume in the foreground using the F g command, you can send a signal like kill signal with K double L, and the signal number and the job number. Similarly, you could use the exit status. The exit status is used to process or report success or failure with an exit you can do with exit status. Zero is used for success. One to 255 values are used for failure. You can check whether the process has completed successfully or it has result in a failure.

Dollar question mark is to the exit status of most recent combined exit is pace the number which you assigned for success or failure 10 minutes to set a status to number. This is an example, how we can do so. There are conditional execution execution operators, like and or, which can be used to run conditionally to run various operations like if else conditions. Double ampersand symbols represent and then, and double pipe symbol represent conditional or as you can test various commands the test command is used to evaluate Boolean statements with conditionals Return zero for true return one is used for false. If the execution is fine, then return zero means true. If it is not fine return one and C two for false.

A test command is used with variables and different arguments where ampersand, double ampersand symbol for n and double pipe symbol for all is can be used. You can test files with three different arguments minus a minus t minus x. minus F is used to test to see if a file exists and is a regular file minus d to test to see if a file exists and is a directory minus x to test. If a file exists and is an executable, you can test a file. Learn more about that file. Then there concise scripting, we have been learning shell scripting in earlier parts. Here I introduce you to the if statement for shell scripting, you might be familiar with certain types of programming languages.

The syntax could be different for you if you have been using Java or C based languages. Here the if else statement is written as if Elif, that is elsif. for short. And as and after that, you have to again write f i is a reverse of if, because I hear we don't use any brackets and kind of curly brackets or any type of margins that we use in Python. Here, the if is a fence letter could be created. The if statement is checked, if it is correct, then the execution is processed within the if statement like the first line of Rico station one is up.

If the condition fails the Elif condition elsif condition or Elif condition is checked. It also fails it moves to as whatever condition is satisfied that one is executed all the rest are not executed. You can write your own shell script, run a process check, manipulate process, use the signals and do a wide range of operations on job scheduling process and various things. Using process. manipulating process and jobs is actually an administrator job. It is a very good thing.

So if you want to be a server administrator on average here, you must be familiar with jobs, process and certain tasks. Keep learning keep moving as we will learning more in the coming videos.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.