Moving a file using PuTTY

Posted by Paul Trotter on Super User See other posts from Super User or by Paul Trotter
Published on 2013-06-26T13:43:05Z Indexed on 2013/06/27 10:23 UTC
Read the original article Hit count: 193

Filed under:
|
|
|

I am newbie struggling to move a file on a Linux VPS using PuTTY.

I can log in with a user in PuTTY at this point I can navigate to see the file I wish to move (~/servers/apache-solr-3.6.2/example/webapps/solr.war).

By using cd .. a couple of times from the directory I begin at when I first log in to PuTTY I can then navigate to the location I wish to move the file to: usr/local/jakarta/apache-tomcat-5.5.36/webapps/

I know that I need to use cp to copy the file and have tried variations on: cp ~/servers/apache-solr-3.6.2/example/webapps/solr.war usr/local/jakarta/apache-tomcat-5.5.36/webapps

However each time I get 'No such file or directory'

I have tried excluding the ~/ and the start and I have tried specifying solr.war at the end of the command.

Please excuse the newbie question, but I would really appreciate some advice on what I am doing wrong here.

© Super User or respective owner

Related posts about linux

Related posts about bash