up previous next contents
Next: The Korn Shell Up: The UNIX Environment Previous: "Unix Environment" Exercises   Contents

Project #1: Create Your Home Directory Structure

In this project you will create your home directory structure for this class. This means that you will create all of the necessary files and directories needed for the remaining exercises in this class.

You will use the following commands:

mkdir make a directory rmdir remove a directory rm remove a file ls list files and directories pwd print working directory cp copy files & directories cd change directory

Examples of these commands are shown below:

mkdir temp rmdir temp ls, ls -al cd cd / cd /usr/local/bin cd temp cp /etc/profile .

1. Regardless of wherever you are currently located in the filesystem hierarchy, go to your "home" directory.

2. In your home directory, create the following subdirectories:

documents spreadsheets employees

3. Within the "documents" subdirectory, create the following subdirectories:

letters memos

4. Within the "spreadsheets" directory, create the following subdirectories:

plans budget proposals

5. Move into your "budget" directory. What is your current "path"?

6. Move back to your "home" directory. Copy the file named "/usr/fred/.exrc" to your home directory. You will need this file for later exercises with the "vi" editor.

7. In your home directory, create a long listing of all files. Which of these "files" are actually directories? How can you easily tell which files are directories?




up previous next contents
Next: The Korn Shell Up: The UNIX Environment Previous: "Unix Environment" Exercises   Contents