FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General FutureQuest Hosting Support
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 03-19-2008, 08:33 AM   Postid: 166199
isaac
Registered User

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Feb 2008
Posts: 30
some help on ssh please

Hi,

I downloaded PUTTY and installed it.

I need some help, rather urgent, on the following SSH commands:

(1) cp <source directory> <destination directory>

how can i specify the source directory?

(2) the destination directory is always http://xabc/username

must i cd .. to get to http://xabc/ and thereafter to www so that the command 'cp <source directory> <destination directory> will copy file to the www directory?

Thank you
isaac is offline   Reply With Quote
Old 03-19-2008, 08:53 AM   Postid: 166201
 Bob
Service Rep
 
Bob's Avatar
 
Join Date: Dec 1999
Location: Jacksonville, Fl
Posts: 4,885
Re: some help on ssh please

Issac,

If you have a file in your /www directory that you want to copy to your Shell directory you would use the following, assuming the file name is test.html

$ cp /big/dom/xdomain/www/test.html /big/dom/xdomain/username

(replacing xdomain with your actual xdom)

So if your domain is 'example.com' and your username is 'albert' the command would be:

$ cp /big/dom/xexample/www/test.html /big/dom/xexample/albert

-Bob

Psst... http://www.FutureQuest.net/Community/SiteOwner/
Bob is offline   Reply With Quote
Old 03-19-2008, 08:59 AM   Postid: 166202
isaac
Registered User

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Feb 2008
Posts: 30
Re: some help on ssh please

thank you Bob

what i want is to copy a file from my PC harddisk to the server

thus:

cp <C:/abc/xyz.php> <destination>

I do not know the syntax for <C:/abc/xyz.php>

.....

thanks again
isaac is offline   Reply With Quote
Old 03-19-2008, 09:04 AM   Postid: 166204
Tom E.
Site Owner
 
Tom E.'s Avatar

Forum Notability:
1175 pts: A True Crowd-pleaser!
[Post Feedback]
 
Join Date: Feb 2005
Location: Connecticut
Posts: 717
Re: some help on ssh please

Hi Isaac,

"http://" is only used to access your site with a web browser. In Telnet/SSH, it's all folders and files, like on your local hard drive.

You can specify the source & destination directories starting at the root directory "/" like this:
Quote:
cp /big/dom/xyouraccount/somedirectory /big/dom/xyouraccount/www
If the directory doesn't begin with a "/", it is relative to your current directory (type "pwd" to find out), like this:
Quote:
cd /big/dom/xyouraccount
cp somedirectory www
You can look at the FQ Knowledge Base article Common Unix/Linux Commands Used Via Telnet/SSH for more info.

You can also use the CNC File Manager to copy, move, create and delete files and directories.

-- Tom
Tom E. is offline   Reply With Quote
Old 03-19-2008, 09:07 AM   Postid: 166205
Tom E.
Site Owner
 
Tom E.'s Avatar

Forum Notability:
1175 pts: A True Crowd-pleaser!
[Post Feedback]
 
Join Date: Feb 2005
Location: Connecticut
Posts: 717
Re: some help on ssh please

Oops - way to slow with my response.

Maybe this one will be fast enough...

Quote:
what i want is to copy a file from my PC harddisk to the server
Telnet/SSH can't access your local computer.

Use the CNC File Manager or an FTP program (Windows Explorer will do it) to copy files between your PC and your FQ account.
Tom E. is offline   Reply With Quote
Old 03-19-2008, 09:11 AM   Postid: 166206
isaac
Registered User

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Feb 2008
Posts: 30
Re: some help on ssh please

oh....that explains the futile search then....

cheers
isaac is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 02:46 AM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.