- There is another way to copy files from a Mac to a Unix Machine
- It involves using the command line
- Open the Macintosh Terminal application
- You will find it in the Utilities folder ...
- inside the Applications folder
- Using the Unix
cd
(change directory) command ...
- go to the directory (folder), that contains the file you want to transfer
- Then at the command line enter
scp FILENAME USERNAME@users3.cs.umb.edu:
- where FILENAME is the name of the file you want to copy ...
- and USERNAME is your Unix username
- You will be prompted for your password
- Be sure to include the the colon, :, after users3.cs.umb.edu
- If you don't nothing will happen
- This will transfer the file to your home directory
- From there you can use the Unix
mv
(move) command ...
- to move the file to the proper directory
- If you wanted to move the file hello.py to the directory ...
- whose relative pathname is
it116/code_entries/ex_01 ...
- you would type
mv hello.py it116/code_entries/ex_01
- You can save yourself a step ...
- by copying the file directly to the correct directory
- You do this by following the colon with the path to the directory
scp FILENAME USERNAME@users3.cs.umb.edu:PATH_TO_DIRECTORY
- If I wanted to copy the file hello.py to my it116/hw/hw1 directory ...
- I would enter the following at the command line
scp hello.py ghoffman@users3.cs.umb.edu:it116/hw/hw1