Site Tools


path-root

Table of Contents

/root

/root is the home directory of the root user (superuser). It is deliberately separate from /home — placing it directly on the root filesystem means it is available even if the /home partition fails to mount or does not exist. A sysadmin logging in for emergency recovery or single-user mode can always reach /root and the root user's shell configuration.

/root/
    .bashrc         root's interactive shell configuration
    .bash_history   command history for the root user
    .ssh/           root's SSH keys (typically used for remote administration)
    .config/        application configuration (if root runs GUI tools)

By convention, root's home is not used for storing data. Scripts, logs, and working files generated during system administration should go in purpose-built locations (/var/log, /var/tmp, /srv, or a dedicated directory under /opt). Leaving files in /root makes auditing harder because there is no separation between the shell environment and actual work products.

Access to /root is typically mode 700 (readable only by root), so other users cannot inspect the root account's SSH keys or command history.

path-root.txt · Last modified: by 127.0.0.1