nerdexam
CompTIA

220-1002 · Question #28

A junior Linux system administrator needs to update system software. Which of the following shell commands would allow the administrator to gain the necessary permissions to update the software?

The correct answer is A. sudo. sudo (superuser do) prepends a command to execute it with root-level privileges without logging in as root directly. For example, sudo apt update runs the update with elevated permissions. chmod (C) changes file permission bits but does not elevate the running user's…

Hardware and network troubleshooting

Question

A junior Linux system administrator needs to update system software. Which of the following shell commands would allow the administrator to gain the necessary permissions to update the software?

Options

  • Asudo
  • Bchmod
  • Cgrep
  • Dpwd

How the community answered

(21 responses)
  • A
    86% (18)
  • B
    5% (1)
  • D
    10% (2)

Explanation

sudo (superuser do) prepends a command to execute it with root-level privileges without logging in as root directly. For example, sudo apt update runs the update with elevated permissions. chmod (C) changes file permission bits but does not elevate the running user's privileges. grep (C) searches text patterns. pwd (D) prints the current working directory. Only sudo grants the temporary privilege escalation needed to install or update system software.

Topics

#Linux commands#sudo#privilege escalation#system administration

Community Discussion

No community discussion yet for this question.

Full 220-1002 Practice