December 9, 200916 yr Mac OS X & Windows are very similar when it comes to FTP. So the following commands should work for both STEP ONE: CONNECT TO FTP SITE To establish an FTP session to the site in question, just issue this command: ftp site-name example: ftp ftp.mywiseguys.com STEP TWO: LOGIN TO FTP SITE You may be prompted for a username/password, just like any other FTP client. Sometimes user: anonymous works. Other times you may be provided a user id and password to use STEP THREE: UPLOAD A FILE TO SITE To upload a file, just issue this command: put name-of-the-file-on-your-hard-drive if you need to find the file first type: !ls (mac) or !dir (windows) (will show a directory listing) lcd (local change directory) example: lcd C:\temp or lcd /Users/Shared SUGGESTION: place the files you want to upload to a site in an easy directory like C:\temp or /Users/Shared so its easy to find STEP FOUR: DOWNLOAD A FILE FROM SITE To download a file, just issue this command: get name-of-the-file-on-the-ftp-server Thats it. It is really easy. The only issue you may run into (and you run into this on ALL ftp clients by the way) is the infamous Passive mode, which I freely admit I don't understand. To test if things are set up right, after you have connected to your site, issue this command: ls This lists the contents of the site. If nothing happens, you have fallen victim to incompatible passive settings. Kill this session (CTL-C usually does it, or just kill the Terminal window entirely) and start again. This time, after you are logged in, issue one of the following commands. They all do the same thing, but the command name varies from FTP server to FTP server. So, one of: epsv passive pasv quote pasv Try "ls" again. When you are getting a directory listing back, you have successfully switched to a compatible passive mode.
December 9, 200916 yr Moderators terminal>ftp user@host password:xXxXxftp>mkdir ftp>cd ftp>lcd ftp>mput *ftp>close This will * connect * create the remote directory (or folder) * cd into that directory * cd to the local directory (if you didn't start there * copy multiple files (all) * log out again
Create an account or sign in to comment