Assignment A

Set up your account

  1. Obtain your user id from the instructor, the system administrator, or the system.
  2. Obtain your password from the instructor, the system administrator, or the system.
  3. Log into the system using your user id and password.
  4. If you wish, use the passwd command to change your password. Use a password that you won't forget.
  5. Log out of the system.

The purpose of this assignment is for you to use the vim editor.

In LINUX, the vi editor is replaced by a similar upgraded editor named vim. When we use the vi command on voyager, it actually runs the vim editor.

While the main thing you will do is learn to use the vim editor, and the vi commands, the only thing I will have to grade is the resulting text output. So, proofread carefully to be sure there are no errors in the output. The content of each line should exactly match the corresponding text shown here. Be sure the spacing, wording, punctuation, spelling, and the end of each line are exactly as shown.

Session A1

  1. Login to the system with your login id and password.
  2. Use the following command to open vim:
    vi headingA
  3. Input text similar to the following, but using your name (as registered; not an alternate name) and the current school term:
    Tommy Atkins   replace with your name, as registered
    CIS 18A    
    Winter 2011    replace with the current quarter
    Assignment A 
  4. Save the file and exit from vim.
  5. You may log out, or continue with the following session.

Session A2

  1. Log into the system, if you are not already logged in.
  2. Use the vim editor to create a file called gettysburgDraft1 which contains the following paragraph with the same alignment and format and line endings.
first draft
  1. Correct your typing errors.
  2. Save the file.
  3. You may log out, or continue with the following session.

Session A3

  1. Log into the system, if you are not already logged in.
  2. Use the following command to make a copy of the file you created in the previous session:
    cp gettysburgDraft1 gettysburgDraft2
  3. In this session you will amend the text; watch carefully for minor wording changes. Use vi to edit gettysburgDraft2 to contain the following text:
revised
  1. Correct your typing errors.
  2. Save the file.
  3. You may log out, or continue with the following session.

Session A4

  1. Log into the system, if you are not already logged in.
  2. Use the following command to make a copy of the file you created in the previous session:
    cp gettysburgDraft2 gettysburgDraft3
  3. In this session you will amend the text; watch carefully for minor wording changes. Use vi to edit gettysburgDraft3 to contain the following text:
final revision
  1. Save the file.
  2. Log out.

Prepare the output and turn it in

  1. Use the following command to create a file with your work from the assignment:
    cat headingA gettysburgDraft1 gettysburgDraft2 gettysburgDraft3 > assignmentA.txt
  2. Use e-mail or WinSCP to obtain a copy of assignmentA.txt. Print it using notepad, or otherwise use the Courier New or other mono-space font.
  3. Turn in your printout to the instructor on time.