IT 114: Introduction to Java
Class 2 Exercise
Today's Class Exercise
- The Class Exercises are designed to give you hands on experience
- All work for this course will be done on the Unix machine users3
- In this exercise you will learn to do four things ...
- which you need to know for this course
- Connecting to a Unix machine
- Listing the contents of a directory
- Moving to another directory
- Creating a new directory
- This video
demonstrates the last three topics
Log in to users3
List the contents of a directory
- After have connected to users3 you will be in your home directory
- To see what is inside a directory, run the
ls
Unix command
ls
stands for "list"
- Run
ls
- The output will show all the files and directories inside you home directory
- If you have completed the Apply process you should see an it114 directory
- All the work you do for this course must be created inside this directory
Moving to another directory
- To move to another directory you need to run the Unix
cd
command
cd
stands for "change directory"
- Run
cd it114
- To see your new location you need to run the Unix command
pwd
pwd
stands for "print working directory"
- Run
pwd
Create new directories
- To create a new directory you need to run the Unix
mkdir
command
mkdir
stands for "make directory"
- You need to create a directory for your homework assignment
- This directory must named hw
- You must also create a directory for your Class Exercises
- This directory must be named ex
- To create the hw directory run
mkdir hw
- To create the ex directory run
mkdir ex
- To check that you have done this properly run
ls
- You should see
ex hw