JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Unix interview questions part 40
Unix interview questions part 40
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Environment variables control the behavior of the system.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
2. The shell has ____ prompts.
A. 1
B. 4
C. many
D. 2
Show Correct Answer
Correct Answer is :
2
3. Which one of the following command will change our primary prompt from $ to C>?
A. PS1=”C> “
B. PS2=”C>”
C. PS1=”>C”
D. PS2=”
Show Correct Answer
Correct Answer is :
PS1=”C> “
4. Which environment variable is used to display our username?
A. PATH
B. MAIL
C. LOGNAME
D. HOME
Show Correct Answer
Correct Answer is :
LOGNAME
5. Which one of the following is not an environment variable?
A. HOME
B. PATH
C. USER
D. env
Show Correct Answer
Correct Answer is :
env
6. Which symbol is used for setting the PS1 prompt to show the current event number?
A. ^
B. !
C. &
D. |
Show Correct Answer
Correct Answer is :
!
7. Which escape sequence is used with PS1 to show the hostname of our computer?
A. \n
B. \c
C. \h
D. \e
Show Correct Answer
Correct Answer is :
\h
8. Which of the following shells support the use of aliases?
A. bourne
B. Korn
C. bash
D. Korn and bash
Show Correct Answer
Correct Answer is :
Korn and bash
9. We can display an alias definition by using an alias with the name.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
10. Which command is used in bash and Korn shells to display the previously used commands?
A. his
B. history
C. sh
D. ps
Show Correct Answer
Correct Answer is :
history
11. To display the last five used commands, which one of the following commands is used (in bash shell)?
A. history 5
B. history -5
C. history
D. history 5-
Show Correct Answer
Correct Answer is :
history 5
12. Which of the following symbols are used for accessing previous commands by event numbers?
A. !
B. r
C. $
D. ! and r
Show Correct Answer
Correct Answer is :
! and r
13. We can use relative addressing while executing previous commands.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
14. We can also execute previous commands by context.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
15. Which symbol is used as a shorthand for using the last argument to the previous command?
A. %
B. _
C. |
D. $
Show Correct Answer
Correct Answer is :
$
16. ____ command is used for sorting a file on specified fields.
A. cut
B. sort
C. pr
D. tail
Show Correct Answer
Correct Answer is :
sort
17. By default, sort command reorders lines in ASCII collating sequence.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
18. Sort command uses ____ as default field delimiter.
A. tab
B. single space
C. double tab
D. one or more continuous spaces
Show Correct Answer
Correct Answer is :
one or more continuous spaces
19. Which option is used with sort command to specify the field delimiter?
A. -a
B. -t
C. -k
D. -n
Show Correct Answer
Correct Answer is :
-t
20. Which option is used for sorting a file according to primary key?
A. -t
B. -k
C. -n
D. -n
Show Correct Answer
Correct Answer is :
-k
Similar Interview Questions
Search for latest jobs
Find Jobs