
Remember: UNix Is cASe SenSiTIvE!
Short Answer Section:
What is a directory?
What is a root directory?
What is a home directory?
What is a current directory?
To what does .. refer?
To what does . refer?
UNIX Command practice
Do each command at the unix
prompt. When you have found the correct
command, write it down next
to each step.
1. Find out your present working directory.
2. List all files in the current directory.
3. Create a new directory (within the current one) called lab3.
4. Change to the new directory.
5. Find out the name of your present working directory.
6. List all the files in that directory.
7. Go back to your home directory.
8. Create a file called firsttry.txt using vi.
9. Type the following into the file:
"My name is <yournamehere>
and my email address is <email>."
10. Save the file and quit vi.
11. Check to see if your file is in the directory.
12. Copy firsttry.txt into the directory lab3.
13. Move to the lab3 directory.
14. Change firsttry.txt's filename to secondtry.txt.
15. Open secondtry and edit the word 'first.txt' to 'second.txt'.
16. Delete the old file (firsttry.txt).
17. Delete secondtry.txt.
18. Remove the directory lab3.