Match the following \(_ⅵ\) commands in Unix : \(\begin{array}{clcl} &…

2017

Match the following \(_ⅵ\) commands in Unix :

\(\begin{array}{clcl} & \textbf{List-I} & & \textbf{List-II} \\ \text{a.} & \text{:w} & \text{i.} & \text{saves the file and quits editing mode} \\ \text{b.} & \text{:x} & \text{ii.} & \text{escapes unix shell} \\ \text{c.} & \text{:q} &\text{iii.} & \text{saves file and remains in editing mode}\\ \text{d.} & \text{:sh} & \text{iv.} & \text{quits editing mode and no change are}\\&&& \text{saved to the file} \\ \end{array}\)

Codes :

  1. A.

    a-ii, b-iii, c-i, d-iv

  2. B.

    a-iv, b-iii, c-ii, d-i

  3. C.

    a-iii, b-iv, c-i, d-ii

  4. D.

    a-iii, b-i, c-iv, d-ii

Attempted by 39 students.

Show answer & explanation

Correct answer: D

Explanation: common vi/vim commands and their meanings.

  • :w – saves the file and remains in editing mode

  • :x – saves the file and quits editing mode

  • :q – quits editing mode; no changes are saved to the file

  • :sh – escapes to the Unix shell

Final matching code: a-iii, b-i, c-iv, d-ii

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…