CMPS-2010 Lab Assignment

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

Follow along with your instructor.

Part 1 - Server account setup ----------------------------- 1. Find your email from the Sysadmins with your Odin logon info. Log on to Odin. Use the passwd command to change your password. Don't forget your new password.
2. Setup your class directory. Run a script. In your terminal, enter the following commands... $ /home/fac/gordon/p/2010/build_dirs.sh
3. Prepare for the lab... $ /home/fac/gordon/p/2010/lab-start.sh
4. Create a file. Change to your 2010/1 directory... $ cd $ cd 2010/1 Look at the contents of the directory... $ 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. $ cd Do a file listing with the some 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 sitting 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 directory. Follow along with Gordon to write a program.