Day 11 a FTP FTP File Transfer Protocol
- Slides: 11
Day 11 a FTP
FTP • File Transfer Protocol. – Used to move files from one machine to another. • • • Windows -> Unix -> Windows Unix -> Unix Windows -> Windows etc.
WSFTP • In windows you have probably used WSFTP or Pro. FTP or FTPExplorer which are GUI that simplify FTPing. – Allow drag and drop – Don’t require you to remember commands.
Command line FTP • In windows you can also FTP from a DOS prompt. – This works exactly the same way as Unix FTP. • Same commands etc.
2 Transfer Modes • Ascii – This is for plain TEXT only. • Files created with vi or notepad • Binary – This is for all other types of files • Sound, Movies, Word Documents, Excel Spreadsheets, Power Point presentations etc.
FTP Unix • In all versions of Unix, the command ftp should exist. – ftp kahuna. clayton. edu
Logging In • You will be asked for your username and password. • If FTPing to a site you don’t have an account on, you can usually log in anonymously. – User: ftp – Pass: Your email address
FTP Commands • • • ls cd get put chmod rm
Using commands • Commands work the same in FTP as they do in Unix. – cd allows you to change directory on the remote machine. – ls shows you a listing of files in the remote machine’s directory. – rm attempts to remove a file in the remote machines directory • This will not work if you are logged in anonymously.
Get • Used to transfer files from the remote machine to your machine. – get myfile. txt • You can also use mget which allows you to transfer all files in a directory: – mget *
Put • Allows you to move files from your machine to the remote machine. – put myfile. txt • Likewise moving a lot of files can be done with multiple put: – mput *