LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-23-2015, 10:29 AM   #1
linuxew
LQ Newbie
 
Registered: Jan 2015
Posts: 21

Rep: Reputation: Disabled
How to download a file from linux machine to local windows machine?


Hi all,
I have access to a sun server machine and need to use ftp/ SCP command to download one data file and one folder.

How I should use the command to transfer the file to my local drive so I can it to support team.
 
Old 01-23-2015, 10:41 AM   #2
linuxew
LQ Newbie
 
Registered: Jan 2015
Posts: 21

Original Poster
Rep: Reputation: Disabled
I also tried to transfer a tar.gz file to another server:I got this error:
scp: .: not a regular file

what I tried>>To copy a file from B to A while logged into B:

scp /path/to/file username@a:/path/to/destination
 
Old 01-23-2015, 10:57 AM   #3
Miati
Member
 
Registered: Dec 2014
Distribution: Linux Mint 17.*
Posts: 326

Rep: Reputation: 106Reputation: 106
Well it looks like you're trying to copy a non-regular file. This could be a directory as you mentioned.
When I do this:
Code:
scp Videos/ server
I get this

Code:
Videos: not a regular file
Per your error, it looks like you're trying to copy "." which is reference to the current directory.

To copy a directory, you need to do so recursively.

Code:
scp -r Videos/ server

Last edited by Miati; 01-23-2015 at 10:59 AM.
 
Old 01-23-2015, 11:02 AM   #4
yo8rxp
Member
 
Registered: Jul 2009
Location: Romania
Distribution: Ubuntu 10.04 Gnome 2
Posts: 102

Rep: Reputation: 31
usage is scp path destination

example :
scp user@129.0.0.1:/home/user/Desktop/test.download path/to/windows/target

alternative you can use total commander and connect via sftp to remote machine
 
Old 01-23-2015, 11:03 AM   #5
linuxew
LQ Newbie
 
Registered: Jan 2015
Posts: 21

Original Poster
Rep: Reputation: Disabled
scp /file/from/here/filename-2015.01.23.15.16.tar.gz username@destination IPadd:/directory of destination/folder
Password: ***************
explorer.85e97314.nb 100% |*********************************************************************************| 4130 KB 00:06

Last edited by linuxew; 01-23-2015 at 11:05 AM.
 
Old 01-23-2015, 12:38 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by linuxew View Post
scp /path/to/file username@a:/path/to/destination[/COLOR]
Error, does not compute.

Code:
scp /path/to/file user@host:/path/to/upload/to
is an upload.
Code:
scp user@host:/path/to/file /path/to/save/to
is a download.

Last edited by Habitual; 01-23-2015 at 12:40 PM.
 
Old 01-23-2015, 12:51 PM   #7
GZB
LQ Newbie
 
Registered: Jan 2015
Location: Lansing, Michigan
Distribution: Many - RHEL 3-6.5, Fed 20
Posts: 4

Rep: Reputation: Disabled
and

scp someuser@somehost:/some/file/source someotheruser@someotherhost:/some/file/destination

is a copy BETWEEN two other systems.

And the scp that I'm looking does indeed have a "-r" for directory recursion.

Last edited by GZB; 01-23-2015 at 12:52 PM.
 
Old 01-24-2015, 06:52 PM   #8
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You can use wget. curl to download via ftp. For upload you can use curl, lftp, ncftp or plain ftp.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Use Linux to Assign local LAN IP to a WAN machine running Windows Find Linux - Networking 1 06-16-2013 04:26 AM
Split a large file to download on a windows machine trackpads Linux - Newbie 11 04-18-2011 07:05 AM
How to transfer file from linux machine to windows machine? pinga123 Linux - Newbie 8 04-09-2010 09:38 AM
How to download whole repository into one folder in the local machine ? prasanthp Linux - Newbie 3 06-25-2009 01:33 AM
scp: copy a file from local machine to remote machine seran Linux - Newbie 8 10-30-2007 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration