Where Is the Root Folder in Linux?
Contents

Everything on your Linux system is located under the / directory, known as the root directory. You can think of the / directory as being similar to the C: directory on Windows – but this isn’t strictly true, as Linux doesn’t have drive letters.

Where is the root folder?

In the most basic sense, “root” refers to the topmost folder in a device’s file system. If you’re familiar with Windows Explorer, root by this definition would be similar to the C: drive, which can be accessed by going up several levels in the folder tree from the My Documents folder, for instance.

How do I access root files in Linux?

  1. Type sudo command and press ↵ Enter (e.g. sudo ifconfig ). When prompted for the password, enter your user password, not the root password.
  2. sudo is the preferred method for distributions like Ubuntu, where it will work even when the root account is locked.
  3. This command is limited to users with administrator privileges.
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest