I know that the /root directory is the superuser’s home directory, but what is the exact purpose with it?
I mean, why am I moved from my /home/lars directory to the /root directory when I start Terminal Super User Mode or issue su -?
The purpose of it is to be the home directory of the root user
Settings files for the root user are kept there.
If you use “su” in place of “su -”, then you will probably stay with your own home directory. But you might then have a path that is wrong for root, and some of your settings might be changed and have their ownership changed to root, so that they won’t work for you. It really is better for the root user to keep to its own home directory.
To add. It is of course the home directory of user root. And it is there and not in /home/root (which you might think as being the obvious place) because /home is often on a separate file system. Thus when you have system problems and e.g.* /home* is not mounted for whatever reason, root can still login because it’s home directory is allways there as long as* / *is mounted.
I guess you can understand the problems one has when root can not login anymore
On 08/02/2012 06:50 PM, Jim Henderson wrote:
> when you use TSUM or su -
denverd@linux-os114:~> TSUM
If 'TSUM' is not a typo you can use command-not-found to lookup the
package that contains it, like this:
cnf TSUM
denverd@linux-os114:~> locate TSUM
denverd@linux-os114:~> tsum
If 'tsum' is not a typo you can use command-not-found to lookup the
package that contains it, like this:
cnf tsum
denverd@linux-os114:~> locate tsum
denverd@linux-os114:~>
TSUM is a mnemonic, maybe just invented here in this thread for “Terminal Super User Mode”. Which itself is an item somewhere in the desktop main menu (at least in KDE, but as the OP did not explain what desktop he uses, it could be in another one).
It is not that TSUM can not be found. Nobody asked: Why can I not find/execute TSUM.
On 08/02/2012 08:18 PM, Jim Henderson wrote:
> I guess I thought it was obvious that I was being lazy and using an
> abbreviated version of the root post.
> On 08/02/2012 08:18 PM, Jim Henderson wrote:
>> I guess I thought it was obvious that I was being lazy and using an
>> abbreviated version of the root post.
>
> IGISHPMAABWTJG!
If you say so. Since the OP in the thread had used “Terminal Super User
Mode”, I thought “TSUM” would make sense to anyone reading it, especially
in the context of talking about that and the use of ‘su -’, which the OP
also said.
Obviously I was wrong in assuming that I’d be understood.