What is the Difference between su and su- ?

Submitted by: Administrator
there is little difference in both of these commends...

su --> just switch you to user mode (root) but didn't provide the complete user environment


su - ---> provide you the complete user environment and also direct jump to user home directory.
Submitted by: Administrator

Read Online Linux Commands Job Interview Questions And Answers