Remote access and administrator rights · Question 10 of 12
What is the difference between su and su -?
1 answer is correct. Medium Created with AI
Show answer
Answer
- C su - starts a login shell with the target user's environment
Explanation
With su - (also su -l) the target user's home directory, PATH and startup files are loaded. Without the dash much of the old environment is kept.