su with hyphen vs no hyphen
Iam quite new to linux terminal and iam not quite sure what is the difference between su with hyphen and su without hyphen.

I looked into man documentation but in there this was not mentioned

http://unixhelp.ed.ac.uk/CGI/man-cgi?su

Could someone please help me out ?


    Command confusion
    
    su - username 
    
    vs
    
    su username
su with hyphen vs no hyphen
===

Iam quite new to linux terminal and iam not quite sure what is the difference between su with hyphen and su without hyphen.

I looked into man documentation but in there this was not mentioned

http://unixhelp.ed.ac.uk/CGI/man-cgi?su

Could someone please help me out ?


    Command confusion
    
    su - username 
    
    vs
    
    su username