1.

Which of the following is not a valid command?(a) : .,$w file002(b) :w 1,$ file002(c) : .w file002(d) : $w file002I had been asked this question in an online interview.This intriguing question comes from Vi-Ex Mode topic in section The Vi Editor of Unix

Answer»

Right choice is (B) :W 1,$ file002

The explanation: FIRST command will save from current line to the last line, the THIRD command will save current line while the fourth command will save the last line in the file named file002.



Discussion

No Comment Found

Related InterviewSolutions