Vi Editor: Default Editor that Comes With the UNIX Operating System

This is a computer science engineering quiz on UNIX, which includes questions on Vi editor (the default editor which comes with the UNIX operating system).

images.png
Start Quiz

Which editor is used by the UNIX system to edit files?

vi notepad word notepad++

Which option is used by vi editor to open a file in read mode only?

-r -R -d -f

How many types of modes are used by vi editor?

2 4 3 1

What is the default mode of vi editor?

Command mode Input mode Ex mode Insert mode

To insert text into a file, _____ mode is used.

Command mode Input mode Ex mode def mode

Which one of the following key is used to switch from command mode to input mode?

i : esc ;

Which of the following key is used to enter in ex-mode?

ESC i : ;

Which of the following files will displayed by this command cat *ch*

patch catch .ch All of the above None of the above

The Octal number to be given alogn with chmod command to make a file readable, writable and executable to the owner, readable and executable to group and others is:

0 755 744 555 None of the above

If you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use

tty ^c stty intr ^c stty echoe stty echo ^a None of the above

Which of the following is not a communication command.

write mesg mail grep None of the above

The chmod ugo+rw note command can be represented in octal notation as

chmod 555 note chmod 666 note chmod 444 note chmod 333 note None of the above

Which command shows all the abbreviations in vi editor?

ab

abb

show

none of the mentioned

ex mode is used for what purpose?

File handling

Substitution

File handling and substitution

Inputting text in files

____ key is used for switching to command mode from input mode.

i

A

:

esc

Quiz/Test Summary
Title: Vi Editor: Default Editor that Comes With the UNIX Operating System
Questions: 15
Contributed by:
james