Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Absolute Path  (Read 7103 times)

0 Members and 1 Guest are viewing this topic.

bryceray1121

  • Guest
Absolute Path
« on: February 25, 2008, 08:50:37 PM »
I am attempting to find the absolute path of my server.  I was told i can do this through ssh.  When using ssh what command can I use to find the absolute path? also, how do i format the command? thanks.

init6

  • Guest
Re: Absolute Path
« Reply #1 on: February 26, 2008, 12:00:53 PM »
You need to be more specific about what you are attempting to do.  Saying absolute path to a UNIX person will be taken as the following:

Absolute path to a directory or file OR the fully qualified reference to access a remote system.

/usr/local/bin/ssh  < -- absolute path from "/" to the ssh command as compared to relative path.
cd /usr/local ; bin/ssh < --- bin/ssh is relative to your present working directory of /usr/local

You wrote "my server" and ssh which implies a remote system.  Absolute qualification for a system would be something like the following for scp

[userid@]<server[.FQDN]>:/absolute/path/to/whatever

example:  /usr/local/bin/scp userid@remoteserver:/home/userid/file file

If you need your system information type the following commands:

hostname or uname -n

If you need the absolute path of your current directory location type the following:

pwd