JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Unix interview questions part 6
Unix interview questions part 6
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which command is used for extracting the details of the operating system?
A. cd
B. echo
C. uname
D. wc
Show Correct Answer
Correct Answer is :
uname
2. The sequences of directories that a shell searches while looking for a command is specified in the PATH variable.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
3. Options are also arguments but begin with a -.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
4. Which of the following is not a valid option of uname?
A. -a
B. -s
C. -v
D. -z
Show Correct Answer
Correct Answer is :
-z
5. How can we specify more than one command in the command line at the same time?
A. using ;
B. using >
C. using ==
D. not possible
Show Correct Answer
Correct Answer is :
using ;
6. Which command is used to display the documentation of commands in UNIX?
A. help
B. search
C. whatis
D. man
Show Correct Answer
Correct Answer is :
man
7. Which command is used for displaying date and calendar in UNIX?
A. date and cal
B. DATE and CAL
C. date and calendar
D. dt and cl
Show Correct Answer
Correct Answer is :
date and cal
8. What is the output of who command?
A. display information about users who are currently logged in.
B. display file hierarchy
C. display administrator information
D. display processes
Show Correct Answer
Correct Answer is :
display information about users who are currently logged in.
9. What are meta-characters?
A. special characters having predefined meaning to the shell
B. special symbols
C. shell symbols
D. command symbols
Show Correct Answer
Correct Answer is :
special characters having predefined meaning to the shell
10. Which command is used for displaying date in the format dd/mm/yyyy ?
A. date +%m
B. date +%h
C. date +”%d/%m/%Y”
D. date +”%h %m”
Show Correct Answer
Correct Answer is :
date +”%d/%m/%Y”
11. Which of the following symbols are used for searching a pattern in vi?
A. /
B. ?
C. %
D. / and ?
Show Correct Answer
Correct Answer is :
/ and ?
12. ____ searches for a first instance of a pattern in forwarding direction.
A. /
B. %
C. &
D. ?
Show Correct Answer
Correct Answer is :
/
13. ____ searches for a first instance of a pattern in the backward direction.
A. /
B. %
C. &
D. ?
Show Correct Answer
Correct Answer is :
?
14. Which command is used for repeating the search in the same direction?
A. n
B. N
C. nn
D. NN
Show Correct Answer
Correct Answer is :
n
15. Which command is used to reverse the direction of repeating the search?
A. n
B. N
C. nn
D. NN
Show Correct Answer
Correct Answer is :
N
16. Substitution command is an ex-mode command.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
17. Which of the following symbol is used for substitution command?
A. n
B. N
C. s
D. S
Show Correct Answer
Correct Answer is :
s
18. Which of the following is a correct syntax for performing substitution on a file?
A. :address/source_pattern/target_pattern/flag
B. :address/target_pattern source_pattern/flag
C. :address/flag
D. :address
Show Correct Answer
Correct Answer is :
:address/source_pattern/target_pattern/flag
19. We cannot leave the flag field empty while performing the substitution.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
20. The target pattern is optional.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
Similar Interview Questions
Search for latest jobs
Find Jobs