Tutorial #5 - Manipulating Directories: mkdir, cd, ls, cp, mv, rm
1. Log on to Unix if necessary.
2. Create new directories named exercise and text as subdirectories
to your home directory.
3. Change working directories to the exercise directory, then create
a directory named chap2 below it.
4. Return to your home directory; show a long list of its contents;
copy a file from it to the last directory you created
($HOME/exercise/chap2)
5. Copy two different files from your home directory to the text
directory.
6. Change directories to the text directory and create a file named
year.1900 in it, using the calendar of the year 1900. Then copy
that file to the chap2 directory.
7. Change the name of the text directory to machine.
8. Return to your home directory. Then remove all the files in the
$HOME/exercise/chap2 directory, and the directory itself.
If it doesn't work:
A. Be sure you use mkdir, cd or rm (rmdir) as the commands to
make, change to, or remove directories. Remember to use the
paths beginning at $HOME, if you aren't in the direct path of the
directory that you are trying to affect.
B. Remember to use the correct path name before any file
reference that is not in the current working directory.
Questions? Robert Katz:rkatz@ned.highline.edu
Last Update July 9, 2002