FTP: File Transfer Program
Usage: ftp [<host> | <host.somewhere.else>]
The ftp command is the user interface to the Internet standard File Transfer Protocol. ftp transfers files to and from a remote network site. When no host is specified or when an ftp connection is successful, ftp enters the command interpreter.
Command interpreter commands:
- ascii
sets the file transfer mode to ASCII.
- binary
or bin sets the file transfer mode to binary.
- bye
terminates the ftp session and exits ftp.
- cd
changes the directories on the remote machine. lcd changes directories on the local machine.
- delete
deletes remote files on the remote machine. mdelete deletes multiple files on the remote host (can use with wildcards).
- get
gets a file from the remote machine and places it on the local machine. mget gets multiple files from the remote host (can be used with wildcards).
- help
or ? prints a listing of all available commands.
- ls [-lart]
prints a listing of the remote directoryÆs contents.
- mkdir <directory_name>
creates a directory on the remote machine.
- open <hostname>
opens a ftp connection with the specified host.
- prompt
toggles interactive prompting. Useful for commands such as mget and mput. Exercise extreme caution when using with mdelete.
- put
puts files on the remote machine. mput puts multiple files on the remote machine (can use with wildcards).
- pwd
shows the current working directory on the remote host.
- rename <old_name> <new_name>
renames the specified file.
- rmdir <hostname>
removes the specified directory from the remote machine.
- !
escapes to the shell.