This MCQ-formatted quiz is on operator command combinations, customizing vi editors, handling multiple files and buffers.
For yanking text, ___ is used.
An operator cannot perform any functions without being combined with a command or itself. True or false?
True
False
We can use __ to delete the line from the current cursor to the end of the line.
$
d$
dd
$d
dw will ________
Delete one line
Delete one word
Delete one character
Delete one sentence
For pasting text, ____ is used.
P or p
D or d
C
X or x
Which command is used to display a file’s contents in octal form?
cd
od
of
oct
None of the above
Which of the following commands is used to get a directory one level up?
cd
cd ..
cd/
chdir
None of the above
Which of the following commands is used to change the working directory?
cd
changedir
chdir
cdir
None of the above
Which of the following commands is used to count the total number of lines, words, and characters in a file?
count p
wc
wcount
countw
None of the above
Which command is used to delete all files in the current directory and all files and sub-directories in its subdirectories?
rm *
rm -r *
rm all
rm *.*
None of the above
The command df. will
Delete entire lines
Delete entire paragraphs
Delete from current cursor up to first occurrence of
Delete zero lines
To delete from the current cursor upto the first occurrence of }, which of the following is used?
dd$}
d /
d / }
}
To yank from the current cursor to the first occurrence of string str in the reverse direction, we can use
y?str
y!str
yy str
yy ! str
Which of the following is not a valid operator-command combination?
5dd
yy5
cc
yG
__ is used to change entire lines.
c$
CC
dd
cc