IT 244: Introduction to Linux/Unix 
    Class 4 Exercise, Tuesday, February 9th  
When finished: Remember to check with instructor to make sure you are recorded as having completed the class exercise!
	Today we are going to practice using the Unix utilities covered in class. 
	
	If you have any difficulty with any part of this
	assignment, please talk to me immediately.
Log in to pe15
	
		
		- Run the ssh client
 Use the values in the table below to connect to pe15.
 
    
			      | ssh configuration parameter | value |  
					| protocol | ssh |  
					| ssh version | 2 |  
					| ssh port | 22 |  
					| host | pe15.cs.umb.edu |  
					| user name | your unix username |  
					| Authentication method | password |  
 
- Enter your password
 A dialog box will appear on the screen into which you must type the
				password for your Unix account.
- Make sure you are in your home directory
 
    cd
- Go to your it244 directory
			
    cd  it244
- Go to your ex directory
 
    cd  ex
- Create an ex04 directory
 
    mkdir  ex04
- Go to your ex04 directory
 
    cd  ex04
Experiment with Special Characters
	
	
	Create a typescript File
    
	
	Working with ls
	
		- Move to your home directory
			
    cd
- Make sure you are in your home directory
			
    pwd
- Run ls without options or arguments
			
    lsYou see only the visible files in your home directory
- Look at the contents of your it244 directory
			
    ls  it244
- Look at all the files in your home directory
			
    ls  -a
- Get a long listing of all the files in your home directory
			
    ls  -alNotice that you can use more than one option at a time.
cat
	
		- Run cat on your .bash_history file
			
    cat  .bash_history
- Now run cat showing line numbers
			
    cat  -n  .bash_history
mkdir
	
		- Go to your ex04  directory
			
    cd  it244/ex/ex04
    pwd
- Create a test directory 
			
    mkdir  test
- Make sure the directory was created
 
    ls
- Create a test2 directory
			
    mkdir test2
- Look at the contents of your current directory
			
    lsYou should see the a new test2 directory
Experiment with rm
	
	
	rmdir
	
	
	Run cp to Copy Files and Directories
	
        - Create a file
 
    touch  foo
- Copy a file
			
    cp  foo  footoyou
- Look at the contents of the directory
			
    ls
- Go to the test directory
			
    cd test
- Create some files in this directory
 
    touch  foo  bar  bletch
- Go back to the ex04 directory
 
    cd ..
- Copy a directory
			
    cp  -r  test  test3
- Look at the contents of the ex04 directory
			
    lsYou should see a new test3 directory
- Look at the contents of test3
			
    ls  test3It should be the same as test
mv
	
		- Go into the test3 directory
			
    cd  test3
- Change the name of footoyou
			
    mv  foo  foo_to_you
- Examine the changes
			
    ls
- Move a file to another directory
			
    mv foo_to_you ../test
- Look at the contents of the current directory
			
    lsfoo_to_you is no longer in your current directory
- Look at the contents of your test directory
			
    ls ../testfoo_to_you has been moved to the test directory
End your script Session
    
        - Exit from your script session
 
    exitYou need to do this or the typescript file will never be created
- Look at the contents of the typescript file
 
    cat  typescript
    
        When finished:
        
            - Remember to check with instructor to make sure you are recorded as having completed the class exercise.
- When you are ready, be prepared to show me:
                
                    - Your command line interaction -- in other words, scrolling up in the terminal windows, not just running the history command!
- Any other deliverables specified in the instructions, such as scripts or other files.