LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-06-2006, 05:16 AM   #1
DNRN
LQ Newbie
 
Registered: Oct 2006
Location: Denmark
Distribution: Fedora 7
Posts: 6

Rep: Reputation: 0
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
 
Old 10-06-2006, 05:18 AM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
i think
Code:
pwd
is what you're looking for
 
Old 10-06-2006, 05:23 AM   #3
DNRN
LQ Newbie
 
Registered: Oct 2006
Location: Denmark
Distribution: Fedora 7
Posts: 6

Original Poster
Rep: Reputation: 0
Smile

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...
 
Old 10-06-2006, 05:30 AM   #4
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
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?...

Last edited by pwc101; 10-06-2006 at 05:32 AM.
 
Old 10-06-2006, 05:57 AM   #5
DNRN
LQ Newbie
 
Registered: Oct 2006
Location: Denmark
Distribution: Fedora 7
Posts: 6

Original Poster
Rep: Reputation: 0
Yeah thanks I've got It

Manny thanks now I can get my work...

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

So I'm glad

Thanks again pwc101
 
Old 10-06-2006, 06:05 AM   #6
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
no worries.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
full path of a file ttilt Linux - General 1 11-08-2005 06:02 PM
Need to specify the full URL path.. Why? soichih Linux - Networking 3 07-31-2004 08:37 AM
get full path of a command (in C) Hady Programming 9 11-21-2003 10:50 AM
get full path of a command (in C) Hady Linux - Software 1 11-19-2003 05:46 PM
How to get executable's full path using C/C++? oldbee Programming 6 02-19-2002 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration