A Quick Introduction to Unix/exercises3

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Task One[edit | edit source]

1 What is the directory indicated by ..

The current directory
The home directory
The directory above the current directory

2 What is a path?

A way to traverse a tree
A route through a UNIX file system
A garden feature

Task Two[edit | edit source]

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[edit | edit source]

Create a directory called tempstuff using mkdir. Copy science.txt to tempstuff. Remove the directory tempstuff. What happens? Can you explain why?