## Exercises: Files and directories

1. Move the file `ghe_files_practical.tgz` to the directory `/home/username/ghe`, "the `ghe` directory".

2. Unpack `ghe_files_practical.tgz`. The `.tgz` file is a *compressed tarball*, a file packaged with `tar` and compressed with `gzip`. You unpack such a file using the following command:

~~~{.bash}
$ tar xzfv ghe_files_practical.tgz
~~~

The `tar` command is followed by four arguments: `x` for extract, `z` to uncompress using `gzip`, `f` to specify we have a file and `v` for verbose.

How many files do you now have in the `ghe` directory?

3. Let's clean up a bit. Delete `ghe_files_practical.tgz`. We don't need it anymore, as it is unpacked.

4. Create a directory called `experiments` and a `data` directory.

5. Move all `.txt` files to `experiments` and all `.bam` files to `data`. How many files are now in each directory?

There's one file, `exercises.txt`, that doesn't belong in the `experiments` directory. Let's move it back to your home directory. We're now going to use this file to record the answers to these questions. 

6. Move the file `exercises.txt` back to the `ghe` directory.

7. Make a copy of this file, called `answers.txt`.

8. Edit the file `answers.txt` using nano and include the answers and all the commands you used. *Hint: use the \<up\> arrow to see previous commands.*
