JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Unix interview questions part 13
Unix interview questions part 13
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which of the following commands will be used to delete 6 lines from the current cursor location?
A. 6d
B. 6X
C. 6dd
D. 6x
Show Correct Answer
Correct Answer is :
6dd
2. Which command is used for putting deleted lines or part of lines at a different location?
A. p and P
B. x
C. dd
D. y
Show Correct Answer
Correct Answer is :
p and P
3. Both ‘p’ and ‘P’ command puts text right/left or above/below on the basis of line deleted.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
4. To copy (yank) lines in vi editor, we use ______ command.
A. dd
B. x
C. p
D. yy
Show Correct Answer
Correct Answer is :
yy
5. To copy 10 lines from the current cursor location, we can use _____
A. 10y
B. 10yy
C. yy10
D. 10x
Show Correct Answer
Correct Answer is :
10yy
6. We can use ‘yy’ command for copy and paste operation.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
7. Which command is used for joining lines?
A. J
B. j
C. yy
D. jn
Show Correct Answer
Correct Answer is :
J
8. Which command will be used to join 4 lines with the current line?
A. 5J
B. 4J
C. 6J
D. 4j
Show Correct Answer
Correct Answer is :
5J
9. Which of the following undo a most recent single editing change?
A. u
B. U
C. uu
D. yy
Show Correct Answer
Correct Answer is :
u
10. ___ command allows us to undo a number of changes that have been made to a single line before moving away from that line.
A. u
B. U
C. dd
D. yy
Show Correct Answer
Correct Answer is :
U
11. Which command is used to redo the changes made by the undo command?
A. ctrl-l
B. ctrl-r
C. ctrl-g
D. ctrl-f
Show Correct Answer
Correct Answer is :
ctrl-r
12. ’10u’ command will reverse our 10 last editing actions.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
13. Which symbol is used for repeating the last command?
A. $
B. *
C. .
D. _
Show Correct Answer
Correct Answer is :
.
14. Which command is used for printing the current working directory?
A. HOME
B. cd
C. pwd
D. dir
Show Correct Answer
Correct Answer is :
pwd
15. Which command is used for changing the current directory?
A. cd
B. cp
C. pwd
D. rm
Show Correct Answer
Correct Answer is :
cd
16. cd command cannot be used without any argument.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
17. Which command is used for creating directories?
A. rmdir
B. mkdir
C. cd
D. cp
Show Correct Answer
Correct Answer is :
mkdir
18. We can create multiple directories by single invocation of mkdir command.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
19. What does the following command do? $ mkdir dir dir/dir_01/dir_02
A. create dir, dir_01 and dir_02
B. creates dir_02
C. creates dir only
D. throws an error
Show Correct Answer
Correct Answer is :
create dir, dir_01 and dir_02
20. Sometimes we are unable to create a directory because ______________
A. the directory may already exist in the current directory
B. there may be an ordinary file by the same name in the current directory
C. the permissions set for the current directory does not allow the creation
D. the directory may exist, there may be an ordinary file, the permissions set for the current directory does not allow the creation
Show Correct Answer
Correct Answer is :
the directory may exist, there may be an ordinary file, the permissions set for the current directory does not allow the creation
Similar Interview Questions
Search for latest jobs
Find Jobs