$man su
-, -l, --login
Provide an environment similar to what the user would expect had
the user logged in directly.
When - is used, it must be specified before any username. For
portability it is recommended to use it as last option, before any
username. The other forms (-l and --login) do not have this
restriction.
Zrovna včera sem resil ruzne podoby su
a sudo
, a nasel sem tohle forum kde vysvetlujou co vsechno ty prepinace ovlivnujou a na co si tedy dat pozor
https://ubuntuforums.org/showthread.php?t=983645&s=5f7eddafbca0088e8e4155d9dd43e5c4&p=6188826#post6188826