You need to run a single command on a Linux workstation, but your account lacks the required permissions. Which command lets you execute just that one command with the privileges of another user (typically root) without launching a new shell session?
Using sudo lets an authorized user run one command with the security privileges of another account. Unlike su, which starts a new shell, sudo elevates only the specified command. yum installs or updates software packages, and chmod merely changes file permissions-it does not run a command with different user privileges.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the sudo command and how does it work?
Open an interactive chat with Bash
What is the difference between sudo and su?
Open an interactive chat with Bash
What does it mean to have security permissions in Linux?