LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What is the difference between su and su - (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-the-difference-between-su-and-su-485357/)

royeo 09-20-2006 12:33 PM

What is the difference between su and su -
 
I'm often in a terminal and need to be in super user mode. I used to just enter "su" but now I use "su -". I figure I can't lose by having too much but I just don't know. Are there times when you shouldn't use "su -"?

Thanks,

royeo

w3bd3vil 09-20-2006 12:46 PM

nice question, even I wanted to know the diff.
here is what I found
http://www.linuxquestions.org/questi...d.php?t=303999

jstephens84 09-20-2006 03:01 PM

su - turns you into root while su just gives you the privileges.


All times are GMT -5. The time now is 11:25 PM.