Operating Systems

A technician logged in as a standard user needs a full interactive shell as the root account for several commands, entering the root password once. Which command provides this?

Show the answer

Correct answerB. su

AWhy not this: fsck checks filesystem integrity; it has no role in changing the user.

BWhy this is right: su with no username switches to root and opens a shell after the root password is given.

CWhy not this: sudo -l lists the user's allowed sudo commands; it neither switches user nor opens a shell.

DWhy not this: mount attaches filesystems and does not change the user account or open a shell.

su switches to another user, root by default, and starts a shell after the target account's password is entered. sudo -l only lists the commands the user is allowed to run with sudo and does not start a root shell.