1.

Which command is used for putting deleted lines or part of lines at a different location?(a) p and P(b) x(c) dd(d) yI have been asked this question in exam.My doubt is from Editing Text in Vi Editor in portion The Vi Editor of Unix

Answer»

The CORRECT choice is (a) P and P

Best EXPLANATION: Using ‘p’ and ‘P’ command we can put deleted text at a different location. For example, if we’d deleted a single character using ‘X’ then we can put that character at ANOTHER location by placing the cursor at that location and pressing ‘p’ or ‘P’.



Discussion

No Comment Found

Related InterviewSolutions