LiveFire Labs: Online UNIX Training with Hands-on Internet Lab


"Taking a LiveFire Labs' course is an excellent way to learn Linux/Unix. The lessons are well thought out, the material is explained thoroughly, and you get to perform exercises on a real Linux/Unix box. It was money well spent."

Ray S.
Pembrook Pines, Florida



LiveFire Labs' UNIX and Linux Operating System Fundamentals course was very enjoyable. Although I regularly used UNIX systems for 16 years, I haven't done so since 2000. This course was a great refresher. The exercises were fun and helped me gain a real feel for working with UNIX/Linux OS. Thanks very much!"

Ming Sabourin
Senior Technical Writer
Nuance Communications, Inc.
Montréal, Canada

Read more student testimonials...


Receive UNIX Tips, Tricks, and Shell Scripts by Email







LiveFire Labs' UNIX Tip, Trick, or Shell Script of the Week

The UNIX File System Structure

The Hierarchical File Structure

The file system of the UNIX and Linux operating systems is hierarchical in nature, and is frequently called a tree-structured file system because it resembles an upside down tree. At the beginning of this inverted tree is the root directory, which is typically called root.

The root directory is represented by the / (forward slash) character. All other files and directories on the system, regardless of what physical storage device they may reside on, are located below the root directory. The following diagram is a visual representation of the file system structure:


The UNIX File System Structure


Absolute and Relative Pathnames

A file or directory (a container for one or more files) in the file system can be referenced by either its absolute or relative pathname. The absolute pathname is the path to a file or directory starting at the root directory (/). The relative pathname is the path to a file or directory starting from, or in relation to, your current location (directory) in the file system.

To understand this better, let's look at a file named myfile2 that is located in /home/jdoe/docs




The absolute pathname to myfile2 would be:

/home/jdoe/docs/myfile2

If you are currently in the /home/jdoe directory, the relative path to myfile2 would be:

docs/myfile2

Notice how there is no / prior to the docs directory. If a / was included, this would indicate an absolute path from the root directory and myfile2 would not be found because there is not a docs directory immediately below the root directory.
Read the NEXT article in this series - Standard UNIX & Linux Operating System Directories