Terminal Copy Folder To Desktop
I have a folder on a Linux server and I have to transfer that file from there to my Mac desktop. I have never done it.
What is the best way to do that? I am trying to use terminal but is there any tool like WinSCP to do that?
Move to the directory you want to copy your files from. To move a file from the home folder into the documents folder, you first need to use the 'cd' command to move into your home folder: cd. Use the copy command to move your files to the directory you want.
slhckmigrated from stackoverflow.comDec 11 '12 at 17:32
This question came from our site for professional and enthusiast programmers.
4 Answers
Install openSSH on the linux server. Assuming a debian based distribution, do this:
Open a terminal and copy the files:
i. From Linux to Mac (run from the Linux machine):
ii. From Linux to Mac (run from the Mac):
The general syntax of the scp
command is the following.
To copy a file from the local server to the remote one:
To copy a file from the remote server to the local one:
WinSCP is a SFTP/SCP/FTP client for Windows.
Similar clients exist for the Mac - good examples are Transmit and Cyberduck.
Transmit and Cyberduck understand FTP, SFTP and WebDAV but it entirely depends how the linux server is set up whether you can access that particular folder with one of those services.
If it's going to be a regular exercise, then have a look at installing OS X FUSE / MacFUSE, see:
slhckYou can use SSH File Transfer Protocol, sftp
from your Mac terminal.
Steps:
Enter the user@remote_server's password:
Just in case you are not certain about the file name, you can change to the source directory and list the segments in your source directory
I have some files on my laptop which I want to copy them on a remote cluster. To this end, I use PuTTy to SSH the remote cluster. Then to copy files, I use PuTTy terminal and after logging to the remote system, I write the below instruction,
aiming copy all files in folder C:UsersnameDesktopAFU
in my laptop to a folder named SVM
on the remote cluster.
However, it does not work and I get the error:
Could you please help me?The operating system on my laptop is Windows 8.1.
ThomasHow To Copy Folders Only
closed as off-topic by Alexander, GAD3R, dr01, maxschlepzig, Kusalananda♦Jan 14 '17 at 22:31
Linux Terminal Copy Folder
- This question does not appear to be about Unix or Linux within the scope defined in the help center.
3 Answers
The scp
command you're trying to run is not only wrong, but won't work anyway because it presumes your laptop is running a SSH server.
To do what you want, there's a much simpler way: use WinSCP on your laptop to connect to the remote cluster (it works similarly to PuTTY), then upload the files you want -- in your case, files from C:UsersnameDesktopAFU
in your laptop to ~/SVM
on the remote cluster.
On your windows machine, use the pscp
command that comes with Putty.
Logging into a remote system and then expecting the remote system to find files on your local system will not work (luckily!).
AlexanderAlexanderFrom putty's homepage I believe you can download pscp which is a windows scp command application. It works as scp but from the windows side. So, something like this in a cmd windows on the Windows machine: Alarm fur cobra 11 spiel download.
Taken from the head, but something like that.