linux process management
Question 5
You can monitor the real-time activity of processes with the top
command.
Question 5 options:
True
False
Question 6
You can terminate a process with job ID 3 with the stop 3
command.
Question 6 options:
True
False
Question 5 - True
The top command is used to monitor the Linux processes. It gives us a dynamic real-time view of the running system. Usually, this command shows us the summary information of the system and the list of processes or threads which are currently managed by the Linux Kernel.
Question 6 - False
Use kill <job ID> to kill the current process with job ID - 3.
Example
1. invoke the sleep process for example
>kuttanz@pj7-inspiron-14-3467:~$ sleep 100
&
>[3] 6180 here 3 is our job ID
2. check for the job
>jobs -l
>[1]- 6004 Stopped (signal) top
>[2]+ 6113 Stopped sleep 100
>[3] 6180 Running sleep 100 & - this is the job we
invoked.
3. Terminate the process using the job ID
>kill 3 - invoke kill job ID to terminate the
process
>[3] Done sleep 100
Get Answers For Free
Most questions answered within 1 hours.