Skip to main content

220-1202 practice question · Operating Systems

A Linux user needs elevated (administrative) privileges to install a package or edit a protected system file from the…

A Linux user needs elevated (administrative) privileges to install a package or edit a protected system file from the terminal. What command do they typically prefix their command with?

  • Asudo
  • Bgrep
  • Cls
  • Dcd
Show the answer and explanation

Correct answer: A) sudo

Why each option is right or wrong

  • A) Correct. sudo ("superuser do") temporarily elevates a permitted user's privileges to execute a specific command as the root/administrative user, the standard way to perform actions requiring elevated permissions on Linux.
  • B) Incorrect. grep searches text for matching patterns; it has no relationship to privilege elevation.
  • C) Incorrect. ls lists directory contents; it has no relationship to privilege elevation.
  • D) Incorrect. cd changes the current working directory; it has no relationship to privilege elevation.
Exam domain
Operating Systems · 28% of 220-1202
Question type
Multiple choice (one answer)

Practise the full 220-1202 exam

This question is one of a small free sample from the CertRidge 220-1202 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with CompTIA; never copied from the real exam.