Command Line (UNIX, Mac OS)
- Bring up a command prompt
- On MacOS - use the Terminal application in Applications - Utilities
- On CNF Thin - use XTerm in Applications - CNF Applications
Type in:
sftp remote_username@remote_host
substituting in your username on the remote computer and the hostname of the remote computer in the above command, as appropriate.
- You will get an sftp> prompt on the remote computer.
- Use standard UNIX file and directory commands to change directories, create directories, and create folders.
- Precede the command with an exclamation mark and a space to execute the command on the local computer filesystem instead of the remote computer filesystem.
| Command | Description |
|---|---|
| pwd | Show current directory on the remote computer |
| ! pwd | Show current directory on the local computer |
| cd dirname | Change directory to a subfolder named dirname on the remote computer |
| ! cd dirname | Change directory to a subfolder name dirname on the local computer |
| cd .. | Go up a directory on the remote computer |
| ! cd .. | Go up a directory on the local computer |
| mkdir dirname | Make a new subfolder named dirname on the remote computer |
| ! mkdir dirname | Make a new subfolder name dirname on the local computer |
| get filename | Copy filename from the remote computer to the local computer |
| put filename | Copy filename from the local computer to the remote computer |
| rm filename | Delete filename from the remote computer |
Fetch (Mac OS X)
Fetch is an excellent GUI file transfer program for Macintosh. IT@Cornell maintains a site license for use by Cornell faculty, staff, and students.
Please see the IT@Cornell "Transfer Files Using Fetch" webpage for instructions on how to sue Fetch to transfer files via FTP, FTPS, or SFTP.