Essential FTP Commands

 

ftp starts an FTP session (on a Unix host)

open hostname attempts to make a connection to the host computer address you type

close hostname closes your current connection, if any

cd .. move up one directory on remote host

cd directoryname move to a specified subdirectory on remote host

dir display the current directory’s content on the remote host

lcd directoryname change the local directory

ls -l display the current directory’s content (similar to dir, but less information is displayed about each file and directory)

pwd display the name of the directory you are in on remote host

ascii prepare to transfer ASCII text files only

binary prepare to transfer files with binary characters

get filename transfer (download) a file from the FTP archive

put filename transfer (upload) a file to the FTP archive

mget filenames transfer (download) multiple files from the FTP archive

mput filenames transfer (upload) multiple files to the FTP archive

prompt turn on/off the prompting mode for mget or mput

quit end an FTP session (other commands might be bye, exit, logout)


CPST2000