Root Directory

The root directory, or root folder, is the top-level directory of a file system. The directory structure can be visually represented as an upside-down tree, so the term "root" represents the top level. All other directories within a volume are "branches" or subdirectories of the root directory.

While all file systems have a root directory, it may be labeled differently depending on the operating system. For example, in Windows, the default root directory is C:\. On Unix systems and in OS X, the root directory is typically labeled simply / (a single forward slash). As you move up directories within a file system, you will eventually reach the root directory.

Website Root Directory

The root directory of a website is not the top-level directory of the volume, but rather the top-level directory of the website folder. On an Apache server, for example, the name of the root directory is public_html and is located within primary user folder for the website. Therefore, the root folder of a website can be accessed using a single forward slash. For example, a link to a file called home.html within the root directory of a website can be accessed using the reference "/home.html."

Updated August 5, 2015

Definitions by TechTerms.com

The definition of Root Directory on this page is an original TechTerms.com definition. If you would like to reference this page or cite this definition, you can use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about the Root Directory definition or would like to suggest a new technical term, please contact us.

Want to learn more tech terms? Subscribe to the daily or weekly newsletter and get featured terms and quizzes delivered to your inbox.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.