LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to see the full path of the computer I'm working on (https://www.linuxquestions.org/questions/linux-general-1/how-to-see-the-full-path-of-the-computer-im-working-on-489945/)

DNRN 10-06-2006 05:16 AM

How to see the full path of the computer I'm working on
 
Hi I have used ssh to login on a remote clutser-computer, where I have some data I would like to get to the computer I'm working on..

But I do not know the full addresse to the computer I'm workning on(the computer is in a computer room in my school). So I can't scp my data :(

So aint there enyone out there, who could help me with a command so I can se my full addresse..?

Hopefully thanks :)

pwc101 10-06-2006 05:18 AM

i think
Code:

pwd
is what you're looking for

DNRN 10-06-2006 05:23 AM

Thanks but is aint enough I would like to see the full address like:

user@somethink.au.dk

I know my username.. But is there enyway I kan get the rest of the address..???

And thanks for the replay pwc101, I'm in bit of a hurry... :)

pwc101 10-06-2006 05:30 AM

Ah. I see.

erm... I'm not sure if this'll work either, but try
Code:

echo $HOST
that should give you the name of the computer you're connected to, which if I remember correctly, forms the second half of the ssh command.

edit: surely if you ssh'ed in, then you already know this?...

DNRN 10-06-2006 05:57 AM

Yeah thanks I've got It :D

Manny thanks now I can get my work...

host tells me the computername and pwd the path whoami my username...

So I'm glad :D

Thanks again pwc101

pwc101 10-06-2006 06:05 AM

no worries.


All times are GMT -5. The time now is 12:43 PM.