Linux - Processes - multichoice questions

Question 1

A user started a process and logged out from the terminal. Which command he used if the process still running in the background:

Question 2

Which of the following is a true statement?

Question 3

Which of the following is not true for the Linux operating system?

Question 4

Open a new terminal session and type the command python. Then send a SIGINT signal using your keyboard. What best describes how the python process responds to the SIGINT signal? (you can exit this process by typing exit() in the python console)

Question 5

Given the bellow terminal output:

myuser@localhost:~$ sleep 600 &
myuser@localhost:~$ sleep 600 &
myuser@localhost:~$ sleep 600 &

Which command could be used to know how many processes are running in the background terminal session?

Question 6

Given a terminal session with a long process running in it, how will you ask this process to terminate?

Question 7

Given a terminal session with a long process running in it, how will you ask this process to stop?

Question 8

How would you run the sleep 10 command as a foreground process?

Given the following output:

[maxwell@station maxwell]$ ps -U maxwell
PID  TTY    TIME    CMD
4785 ?      00:00:00 gnome-session
4828 ?      00:00:00 ssh-agent
...
4846 ?      00:00:00 xscreensaver
5410 pts/8  00:00:00 bash
5451 ?      00:00:00 same-gnome
5452 ?      00:00:00 same-gnome
5454 ?      00:00:01 gimp
5455 ?      00:00:00 script-fu
5463 pts/8  00:00:00 ps
5907 pts/7  00:00:00 bash
5942 pts/7  00:00:00 find

Answer the next 3 questions below.

Question 9

Which of the following commands would deliver a SIGTERM to the xscreensaver process?

Question 10

Which of the following would deliver a SIGKILL to the xscreensaver command?

Question 11

Which of the following would send a SIGCHLD (signal number 17) to the ssh-agent process?

Question 12

Which key pressed within the top command allows the user to send a signal to a process?

Question 13

The kill command always terminates a process.