JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Unix interview questions part 31
Unix interview questions part 31
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. The environment variables are available in _____
A. *environ[ ]
B. env[ ]
C. env
D. pipe
Show Correct Answer
Correct Answer is :
*environ[ ]
2. Which of the following functions are used for obtaining and setting the value of environment variables?
A. getenv
B. setenv
C. env
D. getenv and setenv
Show Correct Answer
Correct Answer is :
getenv and setenv
3. Which of the following action can be taken by a process upon receiving a signal?
A. ignore the signal
B. terminate the process
C. suspend the process
D. ignore the signal, terminate and suspend the process
Show Correct Answer
Correct Answer is :
ignore the signal, terminate and suspend the process
4. What is the default disposition of most signals?
A. ignore the signal
B. terminate the process
C. suspend the process
D. kill the signal
Show Correct Answer
Correct Answer is :
terminate the process
5. We can run the jobs in the background in UNIX.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
6. Shell ___ operator is used for running jobs in the background.
A. $
B. #
C. |
D. &
Show Correct Answer
Correct Answer is :
&
7. Which command is used for running jobs in the background?
A. nice
B. ps
C. nohup
D. exec
Show Correct Answer
Correct Answer is :
nohup
8. It is necessary to terminate the command line with &, even when we are using nohup command.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
9. Which of the following shell(s) allows the user to run jobs in the background even when the user has logged out (without using nohup command)?
A. C
B. bash
C. Korn
D. C and bash
Show Correct Answer
Correct Answer is :
C and bash
10. When nohup command is used, shells returns the _____
A. PID
B. PPID
C. tty
D. TTy
Show Correct Answer
Correct Answer is :
PID
11. nohup command doesn’t send the standard output of a command to any file.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
12. What is the PID of the process who takes the parentage of the process run with nohup command?
A. 0
B. 1
C. 2
D. Infinite
Show Correct Answer
Correct Answer is :
1
13. Which command is used for executing jobs according to their priority?
A. nohup
B. $
C. &
D. nice
Show Correct Answer
Correct Answer is :
nice
14. It is better to use & with nice command.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
15. nice command is a ______ command in C shell.
A. internal
B. external
C. built-in
D. directory
Show Correct Answer
Correct Answer is :
built-in
16. Which option can be used explicitly to reduce the priority of any process.
A. -a
B. -n
C. -o
D. -q
Show Correct Answer
Correct Answer is :
-n
17. Which command is used for premature termination of a process?
A. signal
B. nice
C. kill
D. nohup
Show Correct Answer
Correct Answer is :
kill
18. Which one of the following command is used for killing the last background job?
A. kill $
B. kill $$
C. kill $!
D. kill !
Show Correct Answer
Correct Answer is :
kill $!
19. By default, kill uses the SIGTERM signal (15) to terminate the process.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
20. Which signal is used with kill command to terminate the process when they ignore the SIGTERM signal (15)?
A. SIGTERM (16)
B. SIGTERM(0)
C. SIGKILL(9)
D. -d
Show Correct Answer
Correct Answer is :
SIGKILL(9)
Similar Interview Questions
Search for latest jobs
Find Jobs