nerdexam
LPI

010-100 · Question #30

Which of the following is the home folder for the root user?

The correct answer is C. /root. In Linux, the root user's home directory is '/root', a dedicated directory separate from the '/home' directory used by regular users.

Finding Your Way on a Linux System

Question

Which of the following is the home folder for the root user?

Options

  • A/user/root
  • B/
  • C/root
  • D/home/root

How the community answered

(52 responses)
  • A
    6% (3)
  • B
    4% (2)
  • C
    77% (40)
  • D
    13% (7)

Why each option

In Linux, the root user's home directory is '/root', a dedicated directory separate from the '/home' directory used by regular users.

A/user/root

'/user/root' is not a valid standard Linux path; no such directory exists by default in any Linux filesystem hierarchy.

B/

'/' is the root of the entire filesystem, not a home directory for any user account.

C/rootCorrect

The root account is the superuser in Linux and by convention its home directory is '/root', not under '/home' like standard user accounts. This separation ensures the superuser's files are stored in a distinct, privileged location. The '/root' path is defined in the '/etc/passwd' file as the home directory for the root account.

D/home/root

'/home/root' follows the convention for regular user home directories but is not the actual home directory for the root user in standard Linux distributions.

Concept tested: Linux root user home directory location

Source: https://www.pathname.com/fhs/pub/fhs-2.3.html#ROOTHOMEDIR

Topics

#root user#home directory#filesystem hierarchy#user directories

Community Discussion

No community discussion yet for this question.

Full 010-100 Practice