What's the difference between su -
and bash -l
?
I have this problem:
:/etc/profile.d # su - Cannot open display "default display" Directory: /root Thu Nov 28 11:23:57 CET 2013
Now I try to find out why this message occurs.
:~ # logout :/etc/profile.d # bash -x -l + test -f /proc/mounts + case "`/bin/ls -l /proc/$$/exe`" in ++ /bin/ls -l /proc/17167/exe + is=bash + read -t 1 a r ...
In the second output I have no sign of the "cannot open display" message. So what's the difference?