adplus-dvertising
frame-decoration

Question

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

Posted under Vi Editor UNIX

Answer: (c).6dd

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following commands will be used to delete 6 lines from the current cursor location?

Similar Questions

Discover Related MCQs

Q. Which command is used for putting deleted lines or part of lines at a different location?

Q. Both ‘p’ and ‘P’ command puts text right/left or above/below on the basis of line deleted.

Q. To copy (yank) lines in vi editor, we use ______ command.

Q. To copy 10 lines from the current cursor location, we can use _____

Q. We can use ‘yy’ command for copy and paste operation.

Q. Which command is used for joining lines?

Q. Which command will be used to join 4 lines with the current line?

Q. Which of the following undo a most recent single editing change?

Q. ___ command allows us to undo a number of changes that have been made to a single line before moving away from that line.

Q. Which command is used to redo the changes made by the undo command?

Q. ‘10u’ command will reverse our 10 last editing actions.

Q. Which symbol is used for repeating the last command?

Q. Which of the following symbols are used for searching a pattern in vi?

Q. ____ searches for a first instance of a pattern in forwarding direction.

Q. ____ searches for a first instance of a pattern in the backward direction.

Q. An operator can’t perform any function without being combined with a command or itself.

Q. For deleting the line form current cursor to the end of the line, we can use:

Q. dw will ________

Q. To sort all lines from current cursor to end of line, ____ can be used.

Q. Which of the following is not a valid operator-command combination?