Which of the following commands should be used to switch to the root user account and load root’s environment variables?
  1. su root
  2. su root -e
  3. su -
  4. su -env
Explanation
Answer - C - You should use the su - command to switch to the root user account and load root’s environment variables.

Key Takeaway: The su - command switches to the root user account and loads root’s environment variables. When run from a command line, the su- command asks for the target user’s password. If accepted, it grants the user access to that account and all of the files associated with it.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz