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.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications