3 ms·
Ask HN: What is literal /root directory on Linux
So sorry I'm oblivion the exuistence of this "/root"
so what actually is "/root" directory on (my Arch) Linux all about ?
- h2odragon 4y agoUseful: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html
- pwg 4y agoOn most Linux distributions it is the home directory of the superuser (the one also named "root" in most instances). The reason given for why it is in / instead of /home/ is so the root user has a home directory even when /home/ is a separate (but unmounted) partition or a NFS mount.
- mardiyah 4y agoHow do you think some'd be wtong if we're moving it to $HOME dir. then we'd remove /root
- pwg 4y agoWhen you boot into single user mode, all your normally mounted disks, other than /, are not mounted. The reason it is on / is so it is always available when / is mounted, and also available when / is the only disk mounted (such as single user mode).
- adastra22 4y agoYou’d be in trouble if /home is not mounted.