su root vs. su - root
Posted: Fri May 10, 2013 4:24 pm
Hello,
When switching to the root user, what is the difference between using the "su root" command and the "su - root" command? Either way seems to work fine for me. I was just curious which method is best practice.
Thank you.
When switching to the root user, what is the difference between using the "su root" command and the "su - root" command? Either way seems to work fine for me. I was just curious which method is best practice.
Thank you.