Question
a.
: 1,40w file002
b.
: 1,$w file002
c.
: 4w file002
d.
: 1,4w file002
Posted under UNIX
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 command will be used to write the 4th line to file named file002?
Similar Questions
Discover Related MCQs
Q. Which of the following is not a valid command?
View solution
Q. How can we escape to the UNIX shell without quitting vi editor?
View solution
Q. To return back to the editor from shell prompt we use _____ command.
View solution
Q. vi editor stores most of its information in a hidden swap file.
View solution
Q. To recover from a crash, we can use ____ command.
View solution
Q. The following command will save the contents of the buffer and overwrites the contents of existing file.
:w! File003
View solution
Q. For navigation purposes, the mode should be _____ mode.
View solution
Q. Which of the following keys are used to moving the cursor up and down?
View solution
Q. Which of the following keys is used to moving cursor leftwards along a line?
View solution
Q. Which one of the following keys are used to moving cursor rightwards along a line?
View solution
Q. We can prefix the repeat factor with navigation keys (h, j, k and l).
View solution
Q. We can perform word navigation in vi editor.
View solution
Q. Using ‘b’ command we can _____________
View solution
Q. Using ‘e’ command we can _____________
View solution
Q. Using ‘w’ command we can _____________
View solution
Q. We can prefix repeat factor with word navigation commands.
View solution
Q. Which command is used for moving the cursor to the line extreme?
View solution
Q. ____ command moves the cursor to the end of next line.
View solution
Q. Which of the following commands will move the cursor to the end of line number 30 if the current position of the cursor is line number 01?
View solution
Q. Which of the following control keys will be used for scrolling one page forward?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond UNIX? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!
Operating System
Dive deep into the core of computers with our Operating System MCQs. Learn about...
Software Engineering
Learn about the systematic approach to developing software with our Software...