I have created a virtual image for Scientific Linux and came across this after I finished installing it:
[root@ftpserver home]# pwd
/home
[root]@ftpserver home]# ls
When I cd
into ~
I get this:
[root@ftpserver ~]# pwd
/root
What is the overall difference between /home
and /root
?
Best Answer
According to the Filesystem Hierarchy Standard (FHS):
A typical non-root user's home directory would be
/home/$USER
./root
is also special in that (in many distros)/root
is readable only to root (700
), but a normal user's home directory has read access to others (755
) as well.