13.4 FTP Commands
Users usually use user programs like ftp.exe
. User programs have a user interface (generally a command line) that allow users to input user commands. The most fundamental function of a user program is converting a user command to an FTP command that is transmitted over a network. The FTP command always contains a keyword (for example, USER)
. This keyword can be followed by parameters separated by a space. The command is terminated with the CR (carriage return) and LF (new line) characters. FTP commands are always in ASCII.
FTP Command (transferred by network) |
Usual user command |
Description |
---|---|---|
USER username |
user |
Username. |
PASS password |
|
Password. |
ACCT account |
account |
Apart from a username, some servers can also require an account name, which can be used for accessing some data. |
CWD |
cd |
Change working directory (at server) |
CDUP |
cdup |
Parent directory will by set as working directory (at server). |
SMNT path |
|
File system mount. |
FTP Command (transferred by network... |
---|