On Friday, 22 March 2002 12:28, Tom Nicholson wrote:
Solved. It behaves a little different than I expected. I mean, su - lands me in /root instead of /home/tom, but I'll figure that part out.
Hi, Tom: That's because at the time you su'ed, that's where you were. Want a proof? When I open a console, the prompt shows usergil@linux:~> "usergil" shows my login name, logged in linux, in my home ("~") directory. If I su from there, the prompt shows linux:/home/usergil # Now, there's no user name, because "user" root is logged in ("#"), still in the usergil home directory. I type 'exit' to go back to where I was, then I cd to some other location, say, /etc/X11. Now, the prompt shows usergil@linux:/etc/X11> (/etc/X11 is where I'm now; before it was ~ , my home directory). If I su from there, I'll be root, but still at /etc/X11, shown by the prompt linux:/etc/X11 # If instead of the plain "su" I use "su -", I'll do two moves in one scoop: change from plain user to root *and* change location, from wherever I was to root's home directory, shown by the prompt linux:~ # Note the tilde (~) indicates I'm in the /root directory, which is, for root, what /home is for user. Time for a confession: it took me a good while, in the beginning, to really grasp the difference between 'root' and '/root'. Once again, '/root' is the home directory of the "user" 'root'. I hope it makes sense to you. It's not fun going through that "teething" phase... Regards, gr (in /usually/ sunny, balmy Florida west coast) ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ Ann Landers: "In war, it counts not who's right, but who's left."