This set of Linux / Unix questions and answers focuses on Linux administration on Process Management and related commands. It will be useful for anyone learning Linux Basics, Essentials and/or Administration.
1. If a program executing in background attempts to read from STDIN
a) It is terminated
b) It’s execution is suspended
c) STDIN is made available to it
d) None of the mentioned
View Answer
Explanation: None.
2. Which command is used to bring the background process to forground?
a) bg
b) fg
c) background
d) forground
View Answer
Explanation: None.
3. How to run a process in the background?
a) &
b) *
c) ?
d) |
View Answer
Explanation: None.
4. Which command can be executed by a user who is already logged into the system, in order to change to the root user? (type the command without any parameters)
a) su
b) root
c) chroot
d) user
View Answer
Explanation: None.
5. Process information in the current shell can be obtained by using
a) kill
b) bg
c) fg
d) ps
View Answer
Explanation: None.
6. Which signal is sent by the command “kill -9 7. Which of the following values for STAT column of ps command is not true: 8. When a child process exits before the parent process exits, which of the following is true: 9. A user issues the following command sequence: If the user kills the bash process, then which of the following is true? 10. The signal sent to a process when the Ctrl-C key is pressed is 11. we can change the priority of a running process using 12. nohup is used to
a) INT
b) TERM
c) KILL
d) STOP
View Answer
Explanation: None.
a) status R means running
b) Status S means sleeping
c) Status E means exited
d) Status Z means zombie
View Answer
Explanation: None.
a) the child process becomes defunct
b) the parent process becomes defunct
c) if the parent process does not handle SIGCHLD, the child process becomes a zombie
d) none of the mentioned
View Answer
Explanation: None. $ a.out &
$ bash
$ a.out &
a) the second a.out process is also terminated
b) the second a.out process becomes a defunct process
c) the first a.out process becomes a zombie process
d) init process becomes parent of second a.out process
View Answer
Explanation: None.
a) KILL
b) TSTP
c) TERM
d) INT
View Answer
Explanation: None.
a) nice
b) renice
c) priority cannot be changed for a running process
d) only superuser can change the priority
View Answer
Explanation: None.
a) automatically hang up the process after logout
b) continue the process after logout
c) create backgroung process
d) manually hang up the process after logout
View Answer
Explanation: None.
Sanfoundry Global Education & Learning Series – Linux Administration & Programming.
Here’s the list of Best Books in Linux Commands & Shell Programming.
Here’s the list of Best Books in Linux Kernel, Device-Drivers & System Programming.
To practice all questions on Linux Administration & Programming, here is complete set of 1000+ Multiple Choice Questions and Answers on Linux.
If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]
- Check Information Technology Books
- Apply for Programming Internship
- Check Linux Books
- Practice Programming MCQs