Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Difference between "su -" command and "sudo -i" command

    Posted on

    When logged in as a normal user we can use the "$ su -" command to switch to root user.

    But we can do the same using the "$ sudo -i" command, what is the difference between these two commands?

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2025 Red Hat