EXAMRADAR

Question: ________Execute a command as another user

Answer:

MCQ: ________Execute a command as another user

Correct Answer: A. who

Explanation:

  • The "sudo" command can be used to execute a command as another user on Unix-based systems.
  • Sudo allows a user with administrative privileges to execute a command as another user or as the root user. The syntax for using sudo to execute a command as another user is as follows:
  • sudo -u <username> <command>
  • Here, <username> is the username of the user that you want to execute the command as, and <command> is the command that you want to execute.
  • For example, to execute the command "ls" as the user "jane", you would use the following command:
  • sudo -u jane ls
  • You will be prompted to enter the password of the current user (with administrative privileges) before the command is executed.
  • Note that the use of sudo and the ability to execute commands as another user are controlled by the system's security policies and access controls.

Discuss a Question

Related Questions

You may be interested in:

Computer Basics MCQs

Recently Added Articles

AI vs Machine Learning: Key Differences Every Professional Should Know

Last updated on: February 13, 2026Posted by: ExamRadar

Office Cleaning Services That Elevate Sydney Offices

Last updated on: February 11, 2026Posted by: ExamRadar

Mental Health Support That’s Closer Than You Think

Mental Health Support That’s Closer Than You Think

Last updated on: January 7, 2026Posted by: ExamRadar

Columbus roofing company

Transform Your Home’s Exterior with Columbus roofing company

Last updated on: November 27, 2025Posted by: ExamRadar

What to Ask Before Booking TMS Therapy Near Me

Last updated on: November 7, 2025Posted by: ExamRadar

5 Trading Strategies to Minimize Risk

Last updated on: October 18, 2025Posted by: ExamRadar