Ana sayfa
/
Teknoloji
/
b) Interpret the meaning of the following VI editor commands i) 1 ESC ii) U iii)3dd iv) 4dw v) R (5 marks)

Soru

b)
Interpret the meaning of the following VI editor commands
i) 1 ESC
ii) U
iii)3dd
iv) 4dw
v) R
(5 marks)

b) Interpret the meaning of the following VI editor commands i) 1 ESC ii) U iii)3dd iv) 4dw v) R (5 marks)

Çözüm

4.2305 Voting
avatar
Ahmet
Usta · 5 yıl öğretmeni
Uzman doğrulaması

Cevap

i) 1 ESC: This command in VI editor is used to save the changes made in the current file. Pressing the '1' key followed by the 'ESC' key will save the changes and return the editor to the command mode.<br /><br />ii) U: The 'U' command in VI editor is used to undo the last change made in the file. It undoes the last modification and reverts the file to its previous state.<br /><br />iii) 3dd: This command in VI editor is used to delete three lines of text from the current position of the cursor. The '3' specifies the number of lines to be deleted, and 'dd' is the command to delete the lines.<br /><br />iv) 4dw: This command in VI editor is used to delete four words of text from the current position of the cursor. The '4' specifies the number of words to be deleted, and 'dw' is the command to delete the words.<br /><br />v) R: The 'R' command in VI editor is used to reload the current file. It reads the contents of the file from the disk and updates the editor with the latest changes.
Derecelendirmek için tıklayın: