# The Unix Tree

* The UNIX file system consists of files and directories organized in a hierarchical structure.
* Avoid File names and directory names with spaces and special characters
* In the figure below, there are 5 subdirectories under the root, i.e. bin, tmp, home, use, src. The directory home has two subdirectories (i.e. iap and paolaf). Thus the parent directory of iap is home.

[![Filetree.png](http://rous.mit.edu/images/8/88/Filetree.png)](http://rous.mit.edu/index.php/File:Filetree.png)

The system provides a few short synonyms relative to the working directory:

* The root is denoted by a forward slash (/).
* The home directory of any given user is specified by a tilde (\~).
* A single dot (".") indicates the current working directory.
* A double dot ("..") indicates the directory above the current directory.

You can find out your current working directory (in other words, where you currently are in the Unix tree) by typing the command pwd (print working directory) at the prompt and then hitting return.

```
# print working directory  
pwd
```

```
# change directory to root directory
cd /
pwd
```

```
# change directory to home directory
cd ~
pwd
```

```
# change directory to root directory
cd /
pwd
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://igb.mit.edu/mini-courses/introduction-to-unix-and-ki-computational-resources/basic-unix/the-unix-tree.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
