Basics of Linux - the root directory

Posted On 2007-06-18 by FortyPoundHead
Tags: Tutorial Linux
Views: 1624

When you start working with Linux OS (operating system) and learning how to user Linux, you will soon discover that there are several Linux terms that are similar, the same, or somehow related.

For example, the terms: root user, / (root directory) and /root (the home directory of the root user) are similar and related.

Now you will learn about the /root directory, which is the home directory (path) of the root user and how this relates to the / (root) directory and the /root (home directory) of the root user.

Linux Tips: Articles having names ending in "Linux Concepts & Terms" are designed to help you with Linux "geek-speak" (Linux "lingo"). By learning the Linux "lingo", you will more easily understand Linux concepts and how to use Linux. And this is an excellent way to get practical Linux training.

First, You Need to Learn a Bit About Linux User Types and Linux Home Directories

Every Linux user has a "home" directory that is typically used for the data files created by the user.

By default, all users have all permissions (rights, capabilities) to their own home directories and this enables them to create data files and directories in the home directory.

The Linux user that exists on all Linux systems and is used to do system administration tasks is named root and this user has all permissions to all of the Linux system. No other Linux users have this capability - they only have limited permissions to the system.

Linux users that are created and used for day-to-day Linux tasks are regular (a.k.a. non-root) users.

Linux Tips: When using Ubuntu Linux, keep in mind that by default, the root user is locked (unusable, disabled). To run Linux system administration commands as the root user, you run the Linux sudo command (along with the commands), rather than logging in as root - or using the su command to log in as root.

The /root Home Directory of the root User

By default, all non-root user home directories are located in a directory named "home", below the / (root) directory - in the path of /home.

For example, for a Linux user named cwest, the home directory is in the path of /home/cwest.

The home directory for the bbest user is in the path of /home/bbest.

However, the home directory for the root user is named "root" and is below the / (root) directory. Therefore, the home directory for the root user is in the path of /root. So, the path for the root is: root, root - hurrah - fun eh?.

The root user keeps: data files, Linux scripts, downloaded Linux software programs, and other Linux system administration files, in directories that are "in" or "below" the root user home directory - in the path of /root.

Now you can learn Linux the easy way - by watching all these terms and concepts clearly described, step-by-step in a Linux video tutorial!

Similar Linux Terms: /root (home directory of the root user), root user, and / (root) directory in the Linux file system

The root User - The Linux System Administration User

The root user has all permissions to all of a Linux system and is used for Linux system administration

The / (root) Directory

The root directory is represented by a / (forward slash) in the Linux file system. All directories in the Linux file system are "off of" or "below" the / (root) directory.

About the Author

FortyPoundHead has posted a total of 1974 articles.


Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Recent Forum Posts

SSL Now Active
dwirch posted on June 16, 2017 at about 8:40 in Site News

SSL Now Active
dwirch posted on June 13, 2017 at about 7:59 in Site News

Coding Archive?
dwirch posted on June 3, 2017 at about 12:54 in Site News

Job Spammer: Bharti Jigyasi
dwirch posted on June 2, 2017 at about 16:57 in Spammers

Coding Archive?
dwirch posted on May 25, 2017 at about 12:38 in Site News

BWASL returns
dwirch posted on May 13, 2017 at about 15:24 in Site News