Name:

Date:

 

 

Lab 1 – Introduction to Unix

Introduction

  

 

Due

Worth

 

Lab Steps 

Step 1 – Setup your Unix account

  1. Log in to your CS department Unix account following these instructions. Password algorithm: FA followed by your 8 digit VUID
  2. Take notice of the last line of text displayed in the terminal window (called a shell prompt) and be sure to remember it. In the terminal window, type in

/mnt/a/mdamian/bin/student_setup.sh

and then hit Enter. This command will run a script to configure your personal account and ready it for this semester’s work.

3.     After running the command, log out and then log back in. You will notice that the shell prompt has changed to display the name of your account and the name of the machine you are working on. This will come in handy later.

4.     If you wish to, you may change your password. Passwords can only be changed on csgate, tanner or degas (NOT felix or helix).  To change your password, type in at the shell prompt

passwd

The system will ask you for the existing password first and then for the new password. Make sure to pick a password that you will remember next time you log in. Log out, then log back in with your new password.

  1. Report success or failure to the instructor and have the instructor or TA initial here: _______
  2. ALTERNATIVE TO INITIALS: If you work through this tutorial on your own, briefly describe here in writing what you did and what you learned:

Step 2 - Intro to Unix, Part 1

  1. Open the online resource "UNIX Tutorial for Beginners".
  2. Read the "Typographical Conventions" section.
  3. Read the "Introduction to The UNIX operating system" section. Pay particular attention to the section on absolute and relative paths, which are the basic tools for navigating the Unix filesystem.
    1. Show your results to the instructor or TA, and have them sign their initials here: __________
  4. Login either to your Unix account or access the really spiffy online Linux emulator.
  5. Once logged in, clear the terminal screen by typing the "clear" command and then hitting Enter.
  6. Work through the steps in "Tutorial One":
    1. Listing files and directories
    2. Making Directories
    3. Changing to a different Directory
    4. The directories . and ..
    5. Pathnames
    6. More about home directories and pathnames
    7. Demonstrate your results of Tutorial One to the instructor or TA, and have them sign their initials here: __________
  7. ALTERNATIVE TO INITIALS: If you do this work on your own, briefly describe here in writing what you did and what you learned:

Step 3 - Intro to Unix, Part 2

  1. Work through the steps in "Tutorial Two":
    1. Copying files and directories
    2. Moving files and directories
    3. Removing files and directories
    4. Displaying the contents of a file on the screen
    5. Searching the contents of a file
    6. Demonstrate your results of Tutorial One to the instructor or TA, and have them sign their initials here: __________
    7. ALTERNATIVE TO INITIALS: If you do this work on your own, briefly describe here in writing what you did and what you learned: