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 quit |
