Share
Explore BrainMass

Unix Command Directory

1 Make a directory in your home directory called your last name (ie. boyle)
2. Create a directory within "your last name" called BLACKSBURG. Do this from your home directory
3. Change to the "your last name" directory.
4. Create a directory within "your last name" called HAMPTON
5. Create directories TIDEWATER and HOKIE within "your last name" with one command.
6. Change to TIDEWATER.
7. Create a file from the keyboard called COLLEGE in the TIDEWATER directory with the following contents

TCC is a COLLEGE.
My first name is _____. (put your first name there! hit enter)
This is a test. " (hit enter here)

Hit Ctl + d - (Ctl + d is the end of file command!)

8. Return to your home directory, and then show your current working directory (that's two commands).
Perform #9 to #16 from this location
9. Create a file from the keyboard called UNIVERSITY within the HOKIE directory with the following contents:

Virginia Tech is a UNIVERSITY.
My last name is _____." put your last name there! (hit enter here)

Hit Ctl + d - (Ctl + d is the end of file command!)

10. Copy the file COLLEGE to the BLACKSBURG directory
11. Show a long directory listing of the BLACKSBURG directory
12. Copy the UNIVERSITY file to the BLACKSBURG directory
13. Create a TCC file which is a combination of COLLEGE and UNIVERSITY.
14. Show a directory listing of your home directory showing all subdirectories.
15. Show the contents TCC
16. Delete the COLLEGE file in the TIDEWATER directory and the UNIVERSITY file in the HOKIE directory in one command
17. Show a directory listing of your home directory showing all subdirectories.
18. Change to "your last name" directory, show the current working directory
19. Delete TIDEWATER
20. Show the file permissions for all directories and subdirectories within "your las

Attachments

Solution Preview

I have given step by step instructions on how to solve the tasks given in your problem.
Please follow them carefully and make sure you are issuing the commands from the correct directory.
Double check your directory information before deleting files or directories. You cannot get them back.

1 Make a directory in your home directory called your last name (ie. boyle)
mkdir boyle
2. Create a directory within "your last name" called BLACKSBURG. Do this from your home directory
mkdir boyle/BLACKSBURG
3. Change to the "your last name" directory.
cd boyle
4. Create a directory within "your last name" called HAMPTON
mkdir HAMPTON
5. Create directories TIDEWATER and HOKIE within "your last name" with one command.
mkdir TIDEWATER HOKIE
6. Change to ...

Solution Summary

The expert examines Unix command and directories.

$2.19