FTP commands. Here are the basic commands you'll need:
| bin | changes the transfer mode to binary (used for transferring graphics, ZIP files, etc.) | |
| chdir | <directory name> | changes our directory |
| dir | lists all of the files in your directory | |
| get | <filename> | transfers files from the remote FTP host to your local hard drive |
| mget | <filename> | transfers multiple files (using wild cards) from the remote FTP host to your local hard drive |
| mkdir | <directory name> | creates a directory |
| mput | <filename> | transfers multiple files (using wild cards) from your local hard drive to the remote FTP host |
| put | <filename> | transfers files from your local hard drive to the remote FTP host |
| prompt | toggles confirmation prompts when using mput and mget commands | |
| pwd | displays the current directory on the Yahoo! GeoCities server | |
| quit | exits the FTP client | |
| rmdir | <directory name> | removes a directory |
| ? | lists various commands | |
| ? | <command> | lists simple help for that <command> |
-----------------------------------
Some FTP error listing
�ԲӪ�FTP���~�C��
110 Restart marker reply. In this case, the text is exact and not left to the particular implementation; it must read: MARK yyyy = mmmm where yyyy is User-process data stream marker, and mmmm server's equivalent marker (note the spaces between markers
���s�Ұʼлx�^���C�o�ر��p�U�A�H���O��T���åB���ίS�O���B�z�F�i�H�o�ˬݡG�аO yyyy = mmm �� yyyy�O �Τ�i�{�ƾڬy�аO�Ammmm�O�A�Ⱦ��ݬ������аO�]�`�N�b�аO�M���������Ů�)
-----------------------------------
120 Service ready in nnn minutes.
�A�ȦbNNN�ɶ����i��
-----------------------------------
125 Data connection already open; transfer starting.
�ƾڳs���w�g���}�A�}�l�ǰe�ƾ�.
-----------------------------------
150 File status okay; about to open data connection.
��A���T�A���b���}�ƾڳs��.
-----------------------------------
200 Command okay.
�R�O���楿�`����.
-----------------------------------
202 Command not implemented, superfluous at this site.
�R�O���Q����A�����I��������R�O.
-----------------------------------
211 System status, or system help reply.
�t�Ϊ��A�Ψt�����U�H���^��.
-----------------------------------
212 Directory status.
�ؿ����A�H��.
-----------------------------------
213 File status. $XrkxmL=
��A�H��.
-----------------------------------
214 Help message.On how to use the server or the meaning of a particular non-standard command. This reply is useful only to the human user.
���U�H���C����p��ϥΥ��A�Ⱦ��ίS�����D�зǩR�O�C���^�_�u��H���ΡC
-----------------------------------
215 NAME system type. Where NAME is an official system name from the list in the Assigned Numbers document.
NAME�t�������C
-----------------------------------
220 Service ready for new user.
�s�s�����Τ᪺�A�Ȥw�N��
-----------------------------------
221 Service closing control connection.
����s������
-----------------------------------
225 Data connection open; no transfer in progress.
�ƾڳs���w���}�A�S���i�椤���ƾڶǰe
-----------------------------------
226 Closing data connection. Requested file action successful (for example, file transfer or file abort).
���b�����ƾڳs���C�ШD���ʧ@���\�����]�Ҧp�A���ǰe�βפ�^
-----------------------------------
227 Entering Passive Mode (h1,h2,h3,h4,p1,p2).
�i�J�Q�ʼҦ�
-----------------------------------
230 User logged in, proceed. Logged out if appropriate.
�Τ�w�n�J�C �p�G���ݭn�i�H�n�X�C
-----------------------------------
250 Requested file action okay, completed.
�Q�ШD���ާ@���\����
-----------------------------------
257 "PATHNAME" created.
���|�w�إ�
-----------------------------------
331 User name okay, need password.
�Τ�W�s�b�A�ݭn��J�K�X
-----------------------------------
332 Need account for login.
�ݭn�n�������
-----------------------------------
350 Requested file action pending further information
��Q�ШD��ާ@�ݭn�i�@�B��h���H��
-----------------------------------
421 Service not available, closing control connection.This may be a reply to any command if the service knows it must shut down.
�A�Ȥ��i�ΡA����s�������C�o�i��O�����R�O���^���A�p�G�A�Ȼ{������������
-----------------------------------
425 Can't open data connection.
���}�ƾڳs������
-----------------------------------
426 Connection closed; transfer aborted.
�s�������A�ǰe����C
-----------------------------------
450 Requested file action not taken.
��Q�ШD��ާ@���Q����
-----------------------------------
451 Requested action aborted. Local error in processing.
�ШD���ާ@����C�B�z���o�ͥ��a���~�C
-----------------------------------
452 Requested action not taken. Insufficient storage space in system.File unavailable (e.g., file busy).
�ШD���ާ@�S���Q����C �t�Φs�x�Ŷ������C ��i��
-----------------------------------
500 Syntax error, command unrecognized. This may include errors such as command line too long..
�y�k���~�A���i�ѧO���R�O�C �o�i��O�R�O��L���C
-----------------------------------
501 Syntax error in parameters or arguments.
�Ѽƿ��~�ɭP���y�k���~
-----------------------------------
502 Command not implemented.
�R�O���Q����
-----------------------------------
503 Bad sequence of commands. )
�R�O�����ǿ��~�C
-----------------------------------
504 Command not implemented for that parameter.
�ѩ�Ѽƿ��~�A�R�O���Q����
-----------------------------------
530 Not logged in. OR Error in password
�S���n�� OR �����K�X���~
-----------------------------------
532 Need account for storing files.
�s�x���ݭn���H��!
-----------------------------------
550 Requested action not taken. File unavailable (e.g., file not found, no access).
�ШD�ާ@���Q����A��i�ΡC
OR 550�A�����a�}�����~�A�i��O�s�s�S����
-----------------------------------
551 Requested action aborted. Page type unknown.
�ШD�ާ@����A������������
-----------------------------------
552 Requested file action aborted. Exceeded storage allocation (for current directory or dataset).
��ШD��ާ@����C �W�X�s�x���t
-----------------------------------
553 Requested action not taken. File name not allowed
�ШD�ާ@���Q����C ���W�����\
-----------------------------------
These errors are similar to HTTP, roughly:
�o�ؿ��~��http��ij�����A�j�P�O�G
Begins with 2xx -- successful
2�}�Y�СЦ��\ A/
Begins with 3xx -- access rights problem
3�}�Y���v�����D
Begins with 4xx -- file problem
4�}�Y�СФ����D
Begins with 5xx -- problem with server or login info
5�}�Y�СЪA�Ⱦ����D
Back to main page