What is a Root Folder or Root Directory?

Definition & Examples of Root Folder/Directory

Picture of blue filing cabinets with one open drawer
© Peter Cade / DigitalVision / Getty Images

The root folder, also called the root directory or sometimes just the root, of any partition or folder is the "highest" directory in the hierarchy. You can also think of it in general as the start or beginning of a particular folder structure.

The root directory contains all other folders in the drive or folder, and can of course also contain files.

For example, the root directory of the main partition on your computer is probably C:\.

The root folder of your DVD or CD drive might be D:\. The root of the Windows Registry are where the hives are stored.

Examples of Root Folders

The term root may also be relative to whatever location you're talking about.

Say, for another example, that you're working inside the C:\Program Files\Adobe\ folder for whatever reason. If the software you're using or the troubleshooting guide you're reading is telling you to go to the root of the Adobe installation folder, it's talking about the "main" folder that houses all of the Adobe files related to whatever it is you're doing.

In this example, since C:\Program Files\ holds lots of folders for other programs too, the root of the Adobe folder, specifically, would be the \Adobe\ folder. However, the root folder for all the program files on your computer would be the C:\Program Files\ folder.

This same thing applies to any other folder. Do you need to go to the root of the user folder for User1 in Windows?

That's the C:\Users\Name1\ folder. But this of course changes depending on what user you're talking about - the root folder of User2 would be C:\Users\User2\.

Accessing a Root Folder

A quick way to get to the root folder of the hard drive when you're in a Windows Command Prompt is to execute the change directory (cd) command like this:

cd \

After executing, you'll immediately be moved from the current working directory all the way up to the root folder. So, for example, if you're in the C:\Windows\System32 folder and then enter cd command with the backslash (as shown above), you'll immediately be moved from where you're at to C:\.

Similarly, executing the cd command like this:

cd ..

...will move the directory up one position, which is helpful if you need to get to the root of a folder but not the root of the entire drive. For example, executing cd .. while in the C:\Users\User1\Downloads\ folder will change the current directory to C:\Users\User1\.

Tip: You may try to access a root folder only to find that you can't see it when you're browsing through Windows Explorer. This is because some folders are hidden in Windows by default. See How Do I Show Hidden Files and Folders in Windows? if you need help unhiding them.

More About Root Folders & Directories

The term web root folder may sometimes be used to describe the directory that holds all of the files that make up a website. The same concept applies here as on your local computer - the files and folders in this root folder contain the main web page files, such as HTML files, that should be displayed when someone accesses the main URL of the website.

The term root used here shouldn't be confused with the /root folder found on some Unix operating systems, where it's instead the home directory of a specific user account (which is sometimes called the root account). In a sense, though, since it's the main folder for that specific user, you could refer to it as the root folder.

More From Us