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?

Terminal Copy Folder To Desktop

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.

slhck
167k48 gold badges467 silver badges483 bronze badges
Guy Mystique

migrated from stackoverflow.comDec 11 '12 at 17:32

This question came from our site for professional and enthusiast programmers.

4 Answers

  1. Install openSSH on the linux server. Assuming a debian based distribution, do this:

  2. 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.

  1. To copy a file from the local server to the remote one:

  2. To copy a file from the remote server to the local one:

Copy folder linuxslhck
167k48 gold badges467 silver badges483 bronze badges
terdonterdon
42.8k9 gold badges94 silver badges141 bronze badges

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.

He WasHe Was

If it's going to be a regular exercise, then have a look at installing OS X FUSE / MacFUSE, see:

slhck
167k48 gold badges467 silver badges483 bronze badges
arober11arober11

You 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

SubhashSubhash

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.

Terminal copy folder to desktop computerThomas
4,4236 gold badges15 silver badges31 bronze badges

How To Copy Folders Only

user4704857user4704857

closed as off-topic by Alexander, GAD3R, dr01, maxschlepzig, KusalanandaJan 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.
If this question can be reworded to fit the rules in the help center, please edit the question.

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.

dr01dr01
17.1k11 gold badges56 silver badges78 bronze badges

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!).

AlexanderAlexander
6,3702 gold badges24 silver badges46 bronze badges

From 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.

Roger NordqvistRoger Nordqvist

Not the answer you're looking for? Browse other questions tagged sshfile-copy or ask your own question.

Comments are closed.