View Full Version : some help on ssh please
isaac
03-19-2008, 08:33 AM
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
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/
isaac
03-19-2008, 08:59 AM
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
Tom E.
03-19-2008, 09:04 AM
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: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:cd /big/dom/xyouraccount
cp somedirectory www
You can look at the FQ Knowledge Base article Common Unix/Linux Commands Used Via Telnet/SSH (http://service.futurequest.net/index.php?_a=knowledgebase&_j=questiondetails&_i=43&nav=+%26gt%3B+%3Ca+href%3D%27index.php%3F_a%3Dknowledgebase%26_j% 3Dsubcat%26_i%3D9%27%3EGeneral+Support%3C%2Fa%3E+%26gt%3B+%3Ca+hr ef%3D%27index.php%3F_a%3Dknowledgebase%26_j%3Dsubcat%26_i%3D77%27 %3Etelnet%2FSSH%3C%2Fa%3E) for more info.
You can also use the CNC File Manager to copy, move, create and delete files and directories.
-- Tom
Tom E.
03-19-2008, 09:07 AM
Oops - way to slow with my response.
Maybe this one will be fast enough...
what i want is to copy a file from my PC harddisk to the serverTelnet/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.
isaac
03-19-2008, 09:11 AM
oh....that explains the futile search then....:confuz:
cheers
vBulletin® v3.6.8, Copyright ©2000-2013, Jelsoft Enterprises Ltd.