UngarTheDestroyer
UngarTheDestroyer

Reputation: 31

Unix Shell file transfer

I just started using Unix and I need to copy of few files from my class folder to my MAC.

Files are lab1.txt and lab1script, unix host is [email protected] and directory is /home/1/name/c4251/bin

I need it to go to my desktop or somewhere I can find it at least, I've been using scp with the syntax:

scp lab1.txt [email protected]:lab1.txt

I really can't figure out what is going on any help is greatly appreciated.

Upvotes: 0

Views: 121

Answers (2)

Seb
Seb

Reputation: 152

Go into your mac and open the terminal. The format is:

scp from to

So you are going to type:

scp [email protected]:~/home/1/name/c4251/bin/* .

you are copying everything in the bin folder (by using the *) to your current folder (from which you are making this call) which is denoted by .

Upvotes: 1

sborsky
sborsky

Reputation: 561

user2371502 almost had it:

scp [email protected]:/home/1/name/c4251/bin/* ~/Desktop/

Upvotes: 0

Related Questions