Menu
FTP (File Transfer Protocol) allows a user to transfer files to/from a remote network site.
Source: http://www.davelozinski.com/tutorials/ftp/index.php?1223707115531
Topics: Basic Order of Operations | Commands | Example Screen Shots
Click to download this tutorial in PDF format!
Basic Order of Operations:
1. Change to your local directory where most (if not all) of the files you will be transferring are kept.
2. Open a connection to the remote host via the ftp command.
3. Once connected to the remote host, change to the directory (cd command) where the files are that you are going to get or to the location where you are going to put files.
4. Set the transfer mode (ascii or binary).
5. Transfer the files (get, mget, put, mput).
6. Repeat steps 1, 3, 4, 5 as necessary.
7. Exit ftp with the bye command.
Commands:
Examples: C:\> ftp neserve0 C:\> ftp erols.erols.com
Examples: ftp> open neserve0 ftp> open erols.erols.com
Examples: ftp> user dlozinsk ftp> user anonymous
Examples: ftp> ls ftp> ls /usr/local/bin
Examples: ftp> dir ftp> dir /usr/local/bin
Examples: ftp> help ftp> help dir
Examples: ftp> ? ftp> ? dir
Example: ftp pwd>
Examples: ftp> cd /tmp ftp> cd ../..
Examples: ftp> lcd c:\temp ftp> lcd ../..
Example: ftp> ascii
Example: ftp> binary
Examples: ftp> put index.html ftp> put test.txt
Examples: ftp> get index.html ftp> get /tmp/readme.txt
Examples: ftp> mput * ftp> mput *.html ftp> mput *.html test.txt README
Examples: ftp> mget * ftp> mget *.gif ftp> mget *.doc image.gif salaries*
Example: ftp> prompt
Example: ftp> bell
Examples: ftp> delete test.doc ftp> delete /tmp/temporary_file.txt
Examples: ftp> mkdir temp ftp> mkdir /tmp/dave
Examples: ftp> rmdir temporary_directory ftp> rmdir /tmp/test_dir
Examples: ftp> rename index.htm homepage.html ftp> rename /tmp/readme.txt /tmp/README_NOW.txt
Example: ftp> bye