411 REFERENCE · Wikibooks
A Quick Introduction to Unix/exercises3
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Task One
{What is the directory indicated by ..
|type="()"}
- The current directory
- The home directory
+ The directory above the current directory
{What is a path?
|type="()"}
- A way to traverse a tree
||This is true in computer science and mathematics in general, but in UNIX it has a more specific meaning.
+ A route through a UNIX file system
||In UNIX all permanent storage is integrated into a single, hierarchical file structure starting at root.
- A garden feature
Task Two
Move to the directory ~/unixstuff.
Create a backup of your science.txt file by copying it to a file called science.bak and moving it to the archive directory you created above.
What commands do you need to use to achieve this task? % cd ~/unixstuff
% cp science.txt science.bak
% mv science.bak archive
Task Three
Create a directory called tempstuff using mkdir. Copy science.txt to tempstuff. Remove the directory tempstuff. What happens? Can you explain why?