LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   what is the difference between "/" root directory and "/root" directory? (https://www.linuxquestions.org/questions/linux-general-1/what-is-the-difference-between-root-directory-and-root-directory-256768/)

augustus123 11-19-2004 04:50 AM

what is the difference between "/" root directory and "/root" directory?
 
Hi,

I was new to Linux...

I was not able to understand the differnce between "/" , the root directory

and "/root" directory??

what's the use of these 2 directories?

Thanks

abisko00 11-19-2004 05:05 AM

/ is the root of the linux filesystem

/root is the /home of root, the linux administrator

theYinYeti 11-19-2004 05:39 AM

/root is the home-directory of user "root", the linux administrator (sorry abisko, but even though you're right, don't write "/home of root": it's just confusing for beginners).

In short, all users have their home under /home, so user "joe" will be in /home/joe. User "root" is the only exception, its home being in /root, not /home/root.

That being said, especially when speaking about partitioning, some people tend to write /root when they mean just /. That is because in this case, we know that:
- we are speaking about partitions,
- and directory /root shouldn't be a partition on its own, but rather part of /.
So confusion is kind of "limited".

Yves.

augustus123 11-19-2004 06:23 AM

Thats great...

thank you for both replies

Mara 11-20-2004 05:22 PM

Technical question, so moved to Linux-General.


All times are GMT -5. The time now is 06:15 PM.