JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Firm
Unix interview questions part 47
Unix interview questions part 47
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. One of the most important features of vi editor is _______
A. available mostly across all UNIX platforms
B. easy to learn
C. latest editor
D. powerful than other editors
Show Correct Answer
Correct Answer is :
available mostly across all UNIX platforms
2. The “ed” text editor is no longer in use.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
3. To save the editing performed on a file, we have to switch to ______ mode
A. command
B. input
C. ex
D. insert
Show Correct Answer
Correct Answer is :
ex
4. Pressing ‘:’ in command mode invokes which mode of vi editor?
A. ex-mode
B. insert mode
C. command mode
D. input mode
Show Correct Answer
Correct Answer is :
ex-mode
5. To save a file and return to shell prompt, which one of the following command will be used in ex-mode?
A. :w
B. ‘:x’
C. :a
D. :f
Show Correct Answer
Correct Answer is :
‘:x’
6. To save a file and remain in vi editor, which one of the following command will be used?
A. :w
B. ‘:x’
C. :q
D. :a
Show Correct Answer
Correct Answer is :
:w
7. After pressing ‘:w’, we can normally resume our editing work.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
8. We can specify the filename with ‘:w’ command.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
9. Which command is used for saving and quitting the editor simultaneously?
A. :q
B. :w
C. ‘:x’
D. :f
Show Correct Answer
Correct Answer is :
‘:x’
10. Which of the following command is a substitute for ‘:x’ command?
A. ‘:x’
B. :wq
C. :q
D. :w
Show Correct Answer
Correct Answer is :
:wq
11. Which one of the following is the best way of saving and quitting the editor?
A. ZZ
B. :wq
C. :w
D. ‘:x’
Show Correct Answer
Correct Answer is :
ZZ
12. Which command is used to abort the editing and quit the editing mode?
A. :w
B. :wq
C. :q
D. ‘:x’
Show Correct Answer
Correct Answer is :
:q
13. Quit (:q) command doesn’t work if the buffer is unsaved.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
14. Which of the following command will be used if we want to abort editing and quit the editor even if the buffer has been changed and not saved?
A. :q
B. :b
C. :q!
D. :w
Show Correct Answer
Correct Answer is :
:q!
15. In ex-mode, current line is represented by ___
A. :
B. $
C. >
D. .
Show Correct Answer
Correct Answer is :
.
16. In ex-mode, last line is represented by ___
A. :
B. $
C. >
D. .
Show Correct Answer
Correct Answer is :
$
17. ‘:w’ command can be used to write selected lines.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
18. Which of the following command will be used to write the 4th line to file named file002?
A. : 1,40w file002
B. : 1,$w file002
C. : 4w file002
D. : 1,4w file002
Show Correct Answer
Correct Answer is :
: 4w file002
19. Which of the following is not a valid command?
A. : .,$w file002
B. :w 1,$ file002
C. : .w file002
D. : $w file002
Show Correct Answer
Correct Answer is :
:w 1,$ file002
20. How can we escape to the UNIX shell without quitting vi editor?
A. using ‘:sh’ command
B. using ctrl-Z
C. using ctrl-D
D. using ‘:sh’ command and using ctrl-Z
Show Correct Answer
Correct Answer is :
using ‘:sh’ command and using ctrl-Z
Similar Interview Questions
Search for latest jobs
Find Jobs