Changes

Jump to: navigation, search

Tutorial2: Unix / Linux File Management

393 bytes added, 09:35, 13 January 2021
Part 2: Creating Text Files Using The vi Text Editor
# Type the following key to undo changes: <span style="color:blue;font-weight:bold;font-family:courier;">u</span><br><br>What did you notice?<br><br>
# Type the following keys: <span style="color:blue;font-weight:bold;font-family:courier;">3p</span><br><br>What did you notice?<br><br>[[Image:vi-text-editor-b.png|right|200px|thumb|Use a combination of '''arrow''' keys and the '''w''' and '''b''' keys while in COMMAND mode to change the correct words for the second to fourth lines.]]
# Use up or down arrow keys to move to the second line.<br><br>
# Type either the '''w''' and/or '''b''' keys to move the cursor to the beginning of the word: '''first'''.<br><br>
# Type the '''x''' keys to remove the word called '''first'''.<br><br>
# Type the '''i''' key to enter INSERT mode.<br><br>
# Type the word: second<br><br>
# Press the '''ESC''' key to enter COMMAND mode.<br><br>
# Use a combination of '''arrow''' keys and the '''w''' and '''b''' keys while in COMMAND mode<br>to change the correct words for the second to fourth lines (refer to diagram on right).<br><br>
# Move to the 4th line (i.e. last line).<br><br>
13,420
edits

Navigation menu