CMPS-2010 Lab Assignment

Lab 1 - Using Linux - Vim - Alpine - C++ Programming

Folliow along with your instructor.

Part 1 - Server account setup
1. Find your email from Steve Garcia with your Odin logon info.

   Log on to Odin.
   Change your password.
   Use the passwd command.

2. Setup your class directory.

   Run the following script: /home/fac/gordon/p/2010/build_dirs.sh
   Gordon will check your directory.

3. Create a file.

   Change to your 2010/1 directory.
   Enter the command: ls
   Create a text file using the vi editor.
   Name it file.txt
   Put some text in it.
   Save the file and exit the vi editor.

   Look at the file: cat file.txt

   Copy the file to another file: cp file.txt newfile.txt

   Delete the old file: rm file.txt

   Rename the new file back to the old name: mv newfile.txt file.txt

Part 2 - file permissions
1. Go to your home directory.

   Do a file listing with the following options: ls -al

   We will discuss the file listing.

Part 3 - Alpine email:
1. Log in to Odin.

   Enter the following command: alpine

   Select Folder List

   Select Inbox

   See if you have any mail.

   To go back, press left-arrow.

   Gordon will send everyone a group email.

   Get the Odin username of a person next to you and send them an email.

   Gordon will demonstrate some other email features.

Part 4 - Vim editor:
1. Log in to Odin.

   Go to your 2010/1 driectory.

   Follow along with Gordon to edit a program file.