This is a list of all available ftp commands that can be used for file transfers using the file transfer protocol
dir [remote-directory] [local-file]
Print a listing of the directory contents in the directory, remote-directory, and, optionally, placing the output in local-file. If interactive prompting is on, ftp will prompt the user to verify that the last argument is indeed the tar- get local file for receiving dir output. If no directory is specified, the current working directory on the remote ma- chine is used. If no local file is specified, or local-file is -, output comes to the terminal.