Question 57Asked in UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)

The Unix command : $ vi file1 file2

  1. AEdits file1 and stores the contents of file1 in file2
  2. BBoth files i.e. file1 and file2 can be edited using 'ex' command to travel between the files
  3. CBoth files can be edited using 'mv' command to move between the files
  4. DEdits file1 first, saves it and then edits file2
Show answerHide answer

Correct answer: (B) Both files i.e. file1 and file2 can be edited using 'ex' command to travel between the files

Explanation

You can edit more than one file at a time with vi. vi file1 file2 vi two (or more) files at the same time.

From UGC NET Computer Science PYQ, June 2015 (Paper II & III, Selected Questions)

This is question 57 of UGC NET Computer Science PYQ, June 2015 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.