| |
Command Skills & VI
Submit answers to these questions:
Chapter 2: Review exercises 3, 4, 5, 6
Chapter 8 (VI): Review exercises 1, 2, 3, 4, 5, 6, 7
Additional questions:
- Can you leave vi using ":q" (colon q) if you have unsaved changes in the work
buffer?
- Create three terminal windows on your desktop. Create a file named "woops"
with the text "first" in it. Open the file in the vi editor in the first
terminal window. Change the word "first" to be "FIRST". Do
not save the work buffer back to the original file yet. Look at the contents of
the "woops" file using the third terminal window. Note that it has not yet
changed, since we have not yet written out the changes back to the file.
In a second terminal window, open the same file "woops" using vi again. Note
that, since you haven't saved the work buffer of the first vi back to the file, the file
still has the content "first". Change the word "first" to
"SECOND", save the work buffer, and exit vi.
Go back to the first terminal window. Save the work buffer and exit vi.
What is the content of the file?
|