IT 244: Introduction to Linux/Unix
Homework 2
Due
Sunday, September 15th at 11:59 PM
What You Need to Do
- Create a text file named
redsox.txt described below
- Create a typescript file by
running Unix commands that will do what is described in the steps
below
- These files must be in an hw2
directory under your hw directory
Setup
-
From your home directory go to your it244
directory
cd it244
- Go to your hw directory
cd hw
- Create an hw2 directory
mkdir hw2
- Enter this new directory
cd hw2
- You must run
script
to create a
typescript file in your
hw2 directory
Specification
redsox.txt
40 points
typescript
- Go to your hw2 directory
under your hw
- You will be running
script
to
create a typescript file
- While
script
is running you will
run Unix commands that perform the actions listed below
- You should open another ssh window and practice writing
the Unix commands for each step before running them in
script
- If you do make a mistake in your
script
session, just try again
- When you are finished you must tpye the
following on the command line
exit
- If you don't the typescript
file will not be created
- Do not run
nano
while
runnin script
60 points
-
Use
cd
to go to your home directory
-
Verify that you are in your home directory using
pwd
-
List the contents of your home directory using
ls
-
Show all files in your home directory using
ls -a
-
Go to the directory /home/ghoffman/course_files/it244_files
-
Create a long listing of all the files in this directory
-
Print to the terminal the contents of the file fruit.txt
-
Print to the terminal the contents of the file red_sox.txt
-
Use
cd
to go to your hw2 directory
-
Verify that you are in your hw2 directory using
pwd
-
List the contents of your hw2 directory using
ls
-
Show all the files in your hw2 directory, including the "invisible" ones
Copyright © 2020 Glenn Hoffman. All rights reserved. May not be reproduced without permission.