Problems 4
Home Up Review Problems 1 Problems 2 Problems 3 Problems 4 Problems 5 Problems 6 Problems 7 Problems 8 Problems 9 Problems 10 Problems 11 Problems 12 Problems 13 Problems 14 Problems 15 Problems 16 Subnets

 

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:

  1. Can you leave vi using ":q" (colon q) if you have unsaved changes in the work buffer?
  2. 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?