Brad Beveridge wrote:

You were in root's "home" directory, which is usually /root

Rob Wood wrote:

Greetings,
When I log in as root say on my debian box (text only)I have a prompt:

mkIIdebian:~#

1. If I do 'ls' from here I get a file list:

dead.letter  install-report.template and dbootstrap.settings

2. If I go to the root directory 'cd /' and do 'ls' I get the following plus others

bin dev home temp var mnt

So where was I at 1. and why wasn't I in the root directory as I had logged in as root?

Not an important query but one of those niggling questions.

Cheers Woodsey


'grep root /etc/passwd'

will give you useful info about the root account. This is a pretty typical entry

root:x:0:0:root:/root:/bin/bash

The colon separated fields are well documented elsewhere, but the 6th entry is the home directory for the user.

hth,

Steve

Reply via email to