To initiate an FTP connection from the command line
At unix prompt type "ftp <ftp.site.address>". When possible secure connections can be established by typing "sftp <sftp.site.address>"
$ftp ftp.tgen.org#This brings up a prompt for the usernameName: username#This brings up a prompt for the password (if required)Password: 123#This brings up the ftp promptftp>To navigate when in the FTP command environment
Remote site:
cd xyz - to move between diretoriesls - to see a list of files and folders in current directorypwd - to get current directory pathLocal machine:
lcd xyz - to move between directorieslls - to see a list of files and folders in current directoryTo move files between machines
NOTE: You must first navigate to correct local and remote directories before initiating transfers
Download from remote site to local machine
get file.txtUpload from local machine to remote site
put file.txtTo end an FTP session
quitAdditional Features
ascii to set the mode of file transfer to ASCII (this is the default and transmits seven bits per character)binary to set the mode of file transfer to binary (transmits all eight bits per byte and thus provides less chance of a transmission error)delete to delete a filemdelete to delete multiple filesrename to rename a file (renamemkdir make a new directoryrmdir remove a directoryhelp to see a list of all available FTP commands