JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Unix interview questions part 37
Unix interview questions part 37
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which of the following expression is a correct wildcard pattern if we want an expression in which the last character is not numeric?
A. *[!0]
B. *[0-9]
C. [0-9]
D. *[!0-9]
Show Correct Answer
Correct Answer is :
*[!0-9]
2. The shell waits for the command to complete and normally can’t do any work while the command is executing.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
3. Which of the following is/are true about Shell?
A. Shell is a multi-faceted program
B. Shell is a command interpreter
C. Shell provides us with an environment to work in
D. Shell is a multi-faceted, command interpreter and provides an environment to work in
Show Correct Answer
Correct Answer is :
Shell is a multi-faceted, command interpreter and provides an environment to work in
4. To change the login shell in some system (like Linux) we can use ____ command.
A. chshell
B. chshl
C. chsh
D. ch
Show Correct Answer
Correct Answer is :
chsh
5. set command by default displays the variables in the current shell.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
6. Which one of the following keyword is used with the set command to avoid overwrite existing file?
A. nooverwrite
B. ignore
C. clobber
D. noclobber
Show Correct Answer
Correct Answer is :
noclobber
7. To prevent accident logging out, we can use ____ as a keyword with the set command.
A. noclobber
B. log out
C. ignoreeof
D. ignore
Show Correct Answer
Correct Answer is :
ignoreeof
8. To reverse any setting updated by set command we can use ____ symbol.
A. –
B. /
C. #ERROR!
D. $
Show Correct Answer
Correct Answer is :
#ERROR!
9. The ____ acts as a shorthand representation of the home directory.
A. $
B. ~
C. “”
D. %
Show Correct Answer
Correct Answer is :
~
10. Every shell uses at least one startup script in the user’s home directory, which is executed when the user logs in.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
11. Which file is executed every time a second shell is called up?
A. .profile
B. rc file
C. .script
D. env.file
Show Correct Answer
Correct Answer is :
rc file
12. Which of the following are history variables?
A. HISTISIZE
B. HISTFILESIZE
C. HISTORY
D. HISTISIZE and HISTFILESIZE
Show Correct Answer
Correct Answer is :
HISTISIZE and HISTFILESIZE
13. Which one of the following command will search history list for the previous command having the last occurrence of string cvf?
A. /cvf
B. /cvf [enter]
C. /bkw
D. !cvf
Show Correct Answer
Correct Answer is :
/cvf
14. What is a shell script?
A. group of commands
B. a file containing special symbols
C. a file containing a series of commands
D. group of functions
Show Correct Answer
Correct Answer is :
a file containing a series of commands
15. Shell scripts need to be saved with an extension .sh .
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
16. Shell scripts are executed in a separate child shell process.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
17. The first line in any shell script begins with a _____
A. &
B. !
C. $
D. #
Show Correct Answer
Correct Answer is :
#
18. To run the script, we should make it executable first by using _____
A. chmod +x
B. chmod +r
C. chmod +w
D. chmod +rwx
Show Correct Answer
Correct Answer is :
chmod +x
19. To spawn a child of our own choice for running the script, we can use ___ command.
A. ps
B. pr
C. sh
D. $$
Show Correct Answer
Correct Answer is :
sh
20. Which command is used for making the scripts interactive?
A. ip
B. input
C. read
D. write
Show Correct Answer
Correct Answer is :
read
Similar Interview Questions
Search for latest jobs
Find Jobs