Unix interview questions part 47

Unix interview questions part 47

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 _______

Correct Answer is : available mostly across all UNIX platforms

2. The “ed” text editor is no longer in use.

Correct Answer is : FALSE

3. To save the editing performed on a file, we have to switch to ______ mode

Correct Answer is : ex

4. Pressing ‘:’ in command mode invokes which mode of vi editor?

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?

Correct Answer is : ‘:x’

6. To save a file and remain in vi editor, which one of the following command will be used?

Correct Answer is : :w

7. After pressing ‘:w’, we can normally resume our editing work.

Correct Answer is : TRUE

8. We can specify the filename with ‘:w’ command.

Correct Answer is : TRUE

9. Which command is used for saving and quitting the editor simultaneously?

Correct Answer is : ‘:x’

10. Which of the following command is a substitute for ‘:x’ command?

Correct Answer is : :wq

11. Which one of the following is the best way of saving and quitting the editor?

Correct Answer is : ZZ

12. Which command is used to abort the editing and quit the editing mode?

Correct Answer is : :q

13. Quit (:q) command doesn’t work if the buffer is unsaved.

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?

Correct Answer is : :q!

15. In ex-mode, current line is represented by ___

Correct Answer is : .

16. In ex-mode, last line is represented by ___

Correct Answer is : $

17. ‘:w’ command can be used to write selected lines.

Correct Answer is : TRUE

18. Which of the following command will be used to write the 4th line to file named file002?

Correct Answer is : : 4w file002

19. Which of the following is not a valid command?

Correct Answer is : :w 1,$ file002

20. How can we escape to the UNIX shell without quitting vi editor?

Correct Answer is : using ‘:sh’ command and using ctrl-Z

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon