?
Solved

copy file in linux

Posted on 2009-04-14
3
Medium Priority
?
240 Views
Last Modified: 2013-12-16
How can i shell into a remote server and copy a file back to my pc
0
Comment
Question by:fccinvest
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 29

Expert Comment

by:fosiul01
ID: 24142648
do you want to do this automate or just manualy ??

to manualy

 scp -r root@55.66.77.88:somedir somedir

so it will copy somedir from remote to the local pc

or you can make it automate by RSYNC with passwordless backup
0
 

Author Comment

by:fccinvest
ID: 24142761
manually is fine but I am on a windows xp pc using putty to shell into the linux box.
Then I went to the folder where the file is at and from there type your command ?
Using secure copy what is the -r switch for ?  Then does rot@public address represent
the admin account at my xp box?  So if I want to copy the file to my xp box in the c:\ directory I use

scp -r filename rick@55.66.77.88:c:\
0
 
LVL 29

Accepted Solution

by:
fosiul01 earned 1500 total points
ID: 24142805
ommmmm it would not work that way,

because you would not be able to copy linux file directory to C:/ drive

if you want to do that you need to install Cygin ,

or have to use wincp to download file  from linux to windows

or have to install ftp server and download file

but i guess Cygin would be perfect,

i will sent you some tutorial on this
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month11 days, 3 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question