FTPµÄÃüÁîÐиñʽΪ£º
ftp -v -d -i -n -g [Ö÷»úÃû] £¬ÆäÖÐ
-v ÏÔʾԶ³Ì·þÎñÆ÷µÄËùÓÐÏìÓ¦ÐÅÏ¢£»
-n ÏÞÖÆftpµÄ×Ô¶¯µÇ¼£¬¼´²»Ê¹Óã».n etrcÎļþ£»
-d ʹÓõ÷ÊÔ·½Ê½£»
-g È¡ÏûÈ«¾ÖÎļþÃû¡£
FTPʹÓõÄÄÚ²¿ÃüÁîÈçÏÂ(ÖÐÀ¨ºÅ±íʾ¿ÉÑ¡Ïî):
1.![cmd[args]]£ºÔÚ±¾µØ»úÖÐÖ´Ðн»»¥shell£¬exit»Øµ½ftp»·¾³£¬È磺!ls*.zip
2.$ macro-ame[args]£º Ö´Ðк궨Òåmacro-name¡£
3.account[password]£º ÌṩµÇ¼Զ³Ìϵͳ³É¹¦ºó·ÃÎÊϵͳ×ÊÔ´ËùÐèµÄ²¹³ä¿ÚÁî¡£
4.append local-file[remote-file]£º½«±¾µØÎļþ×·¼Óµ½Ô¶³ÌϵͳÖ÷»ú£¬Èôδָ¶¨Ô¶³ÌϵͳÎļþÃû£¬ÔòʹÓñ¾µØÎļþÃû¡£
5.ascii£ºÊ¹ÓÃasciiÀàÐÍ´«Ê䷽ʽ¡£
6.bell£ºÃ¿¸öÃüÁîÖ´ÐÐÍê±Ïºó¼ÆËã»úÏìÁåÒ»´Î¡£
7.bin£ºÊ¹Óöþ½øÖÆÎļþ´«Ê䷽ʽ¡£
8.bye£ºÍ˳öftp»á»°¹ý³Ì¡£
9.case£ºÔÚʹÓÃmgetʱ£¬½«Ô¶³ÌÖ÷»úÎļþÃûÖеĴóдתΪСд×Öĸ¡£
10.cd remote-dir£º½øÈëÔ¶³ÌÖ÷»úĿ¼¡£
11.cdup£º½øÈëÔ¶³ÌÖ÷»úĿ¼µÄ¸¸Ä¿Â¼¡£
12.chmod mode file-name£º½«Ô¶³ÌÖ÷»úÎļþfile-nameµÄ´æÈ¡·½Ê½ÉèÖÃΪmode£¬È磺chmod 777 a.out¡£
13.close£ºÖжÏÓëÔ¶³Ì·þÎñÆ÷µÄftp»á»°(Óëopen¶ÔÓ¦)¡£
14.cr£ºÊ¹ÓÃasscii·½Ê½´«ÊäÎļþʱ£¬½«»Ø³µ»»ÐÐת»»Îª»ØÐС£
15.delete remote-file£ºÉ¾³ýÔ¶³ÌÖ÷»úÎļþ¡£
16.debug[debug-value]£ºÉèÖõ÷ÊÔ·½Ê½£¬ ÏÔʾ·¢ËÍÖÁÔ¶³ÌÖ÷»úµÄÿÌõÃüÁÈ磺deb up 3£¬ÈôÉèΪ0£¬±íʾȡÏûdebug¡£
17.dir[remote-dir][local-file]£ºÏÔʾԶ³ÌÖ÷»úĿ¼£¬²¢½«½á¹û´æÈë±¾µØÎļþ
18.disconnection£ºÍ¬close¡£
19.form format£º½«Îļþ´«Ê䷽ʽÉèÖÃΪformat£¬È±Ê¡Îªfile·½Ê½¡£
20.get remote-file[local-file]£º ½«Ô¶³ÌÖ÷»úµÄÎļþremote-file´«ÖÁ±¾µØÓ²Å̵Älocal-file¡£
21.glob£ºÉèÖÃmdelete£¬mget£¬mputµÄÎļþÃûÀ©Õ¹£¬È±Ê¡Ê±²»À©Õ¹ÎļþÃû£¬Í¬ÃüÁîÐеÄ-g²ÎÊý¡£
22.hash£ºÃ¿´«Êä1024×Ö½Ú£¬ÏÔʾһ¸öhash·ûºÅ(#)¡£
23.help[cmd]£ºÏÔʾftpÄÚ²¿ÃüÁîcmdµÄ°ïÖúÐÅÏ¢£¬È磺help get¡£
24.idle[seconds]£º½«Ô¶³Ì·þÎñÆ÷µÄÐÝÃß¼ÆʱÆ÷ÉèΪ[seconds]Ãë¡£
25.image£ºÉèÖöþ½øÖÆ´«Ê䷽ʽ(ͬbinary)¡£
26.lcd[dir]£º½«±¾µØ¹¤×÷Ŀ¼Çл»ÖÁdir¡£
27.ls[remote-dir][local-file]£ºÏÔʾԶ³ÌĿ¼remote-dir£¬ ²¢´æÈë±¾µØÎļþlocal-file¡£
28.macdef macro-name£º¶¨ÒåÒ»¸öºê£¬Óöµ½macdefϵĿÕÐÐʱ£¬ºê¶¨Òå½áÊø¡£
29.mdelete[remote-file]£ºÉ¾³ýÔ¶³ÌÖ÷»úÎļþ¡£
30.mdir remote-files local-file£ºÓëdirÀàËÆ£¬µ«¿ÉÖ¸¶¨¶à¸öÔ¶³ÌÎļþ£¬Èç £ºmdir *.o.*.zipoutfile ¡£
31.mget remote-files£º´«Êä¶à¸öÔ¶³ÌÎļþ¡£
32.mkdir dir-name£ºÔÚÔ¶³ÌÖ÷»úÖн¨Ò»Ä¿Â¼¡£
33.mls remote-file local-file£ºÍ¬nlist£¬µ«¿ÉÖ¸¶¨¶à¸öÎļþÃû¡£
34.mode[modename]£º½«Îļþ´«Ê䷽ʽÉèÖÃΪmodename£¬ ȱʡΪstream·½Ê½¡£
35.modtime file-name£ºÏÔʾԶ³ÌÖ÷»úÎļþµÄ×îºóÐÞ¸Äʱ¼ä¡£
36.mput local-file£º½«¶à¸öÎļþ´«ÊäÖÁÔ¶³ÌÖ÷»ú¡£
37.newer file-name£º Èç¹ûÔ¶³Ì»úÖÐfile-nameµÄÐÞ¸Äʱ¼ä±È±¾µØÓ²ÅÌͬÃûÎļþµÄʱ¼ä¸ü½ü£¬ÔòÖØ´«¸ÃÎļþ¡£
38.nlist[remote-dir][local-file]£ºÏÔʾԶ³ÌÖ÷»úĿ¼µÄÎļþÇåµ¥£¬²¢´æÈë±¾µØÓ²Å̵Älocal-file¡£
39.nmap[inpattern outpattern]£ºÉèÖÃÎļþÃûÓ³Éä»úÖÆ£¬ ʹµÃÎļþ´«Êäʱ£¬ÎļþÖеÄijЩ×Ö·ûÏ໥ת»»£¬ È磺nmap $1.$2.$3[$1£¬$2].[$2£¬$3]£¬Ôò´«ÊäÎļþa1.a2.a3ʱ£¬ÎļþÃû±äΪa1£¬a2¡£¸ÃÃüÁîÌرðÊÊÓÃÓÚÔ¶³ÌÖ÷»úΪ·ÇUNIX»úµÄÇé¿ö¡£
40.ntrans[inchars[outchars]]£ºÉèÖÃÎļþÃû×Ö·ûµÄ·Òë»úÖÆ£¬Èçntrans1R£¬ÔòÎļþÃûLLL½«±äΪRRR¡£
41.open host[port]£º½¨Á¢Ö¸¶¨ftp·þÎñÆ÷Á¬½Ó£¬¿ÉÖ¸¶¨Á¬½Ó¶Ë¿Ú¡£
42.passive£º½øÈë±»¶¯´«Ê䷽ʽ¡£
43.prompt£ºÉèÖöà¸öÎļþ´«ÊäʱµÄ½»»¥Ìáʾ¡£
44.proxy ftp-cmd£ºÔÚ´ÎÒª¿ØÖÆÁ¬½ÓÖУ¬Ö´ÐÐÒ»ÌõftpÃüÁ ¸ÃÃüÁîÔÊÐíÁ¬½ÓÁ½¸öftp·þÎñÆ÷£¬ÒÔÔÚÁ½¸ö·þÎñÆ÷¼ä´«ÊäÎļþ¡£µÚÒ»ÌõftpÃüÁî±ØÐëΪopen£¬ÒÔÊ×ÏȽ¨Á¢Á½¸ö·þÎñÆ÷¼äµÄÁ¬½Ó¡£
45.put local-file[remote-file]£º½«±¾µØÎļþlocal-file´«ËÍÖÁÔ¶³ÌÖ÷»ú¡£
46.pwd£ºÏÔʾԶ³ÌÖ÷»úµÄµ±Ç°¹¤×÷Ŀ¼¡£
47.quit£ºÍ¬bye£¬Í˳öftp»á»°¡£
48.quote arg1£¬arg2...£º½«²ÎÊýÖð×Ö·¢ÖÁÔ¶³Ìftp·þÎñÆ÷£¬È磺quote syst.
49.recv remote-file[local-file]£ºÍ¬get¡£
50.reget remote-file[local-file]£ºÀàËÆÓÚget£¬ µ«Èôlocal-file´æÔÚ£¬Ôò´ÓÉϴδ«ÊäÖжϴ¦Ðø´«¡£
51.rhelp[cmd-name]£ºÇëÇó»ñµÃÔ¶³ÌÖ÷»úµÄ°ïÖú¡£
52.rstatus[file-name]£ºÈôδָ¶¨ÎļþÃû£¬ÔòÏÔʾԶ³ÌÖ÷»úµÄ״̬£¬ ·ñÔòÏÔʾÎļþ״̬¡£
53.rename[from][to]£º¸ü¸ÄÔ¶³ÌÖ÷»úÎļþÃû¡£
54.reset£ºÇå³ý»Ø´ð¶ÓÁС£
55.restart marker£º´ÓÖ¸¶¨µÄ±êÖ¾marker´¦£¬ÖØпªÊ¼get»òput£¬È磺restart 130¡£
56.rmdir dir-name£ºÉ¾³ýÔ¶³ÌÖ÷»úĿ¼¡£
57.runique£ºÉèÖÃÎļþÃûÖ»Ò»ÐÔ´æ´¢£¬ÈôÎļþ´æÔÚ£¬ÔòÔÚÔÎļþºó¼Óºó׺.1£¬ .2µÈ¡£
58.send local-file[remote-file]£ºÍ¬put¡£
59.sendport£ºÉèÖÃPORTÃüÁîµÄʹÓá£
60.site arg1£¬arg2...£º½«²ÎÊý×÷ΪSITEÃüÁîÖð×Ö·¢ËÍÖÁÔ¶³ÌftpÖ÷»ú¡£
61.size file-name£ºÏÔʾԶ³ÌÖ÷»úÎļþ´óС£¬È磺site idle 7200¡£
62.status£ºÏÔʾµ±Ç°ftp״̬¡£
63.struct[struct-name]£º½«Îļþ´«Êä½á¹¹ÉèÖÃΪstruct-name£¬ ȱʡʱʹÓÃstream½á¹¹¡£
64.sunique£º½«Ô¶³ÌÖ÷»úÎļþÃû´æ´¢ÉèÖÃΪֻһ(Óërunique¶ÔÓ¦)¡£
65.system£ºÏÔʾԶ³ÌÖ÷»úµÄ²Ù×÷ϵͳÀàÐÍ¡£
66.tenex£º½«Îļþ´«ÊäÀàÐÍÉèÖÃΪTENEX»úµÄËùÐèµÄÀàÐÍ¡£
67.tick£ºÉèÖô«ÊäʱµÄ×Ö½Ú¼ÆÊýÆ÷¡£
68.trace£ºÉèÖðü¸ú×Ù¡£
69.type[type-name]£ºÉèÖÃÎļþ´«ÊäÀàÐÍΪtype-name£¬È±Ê¡Îªascii£¬Èç:type binary£¬ÉèÖöþ½øÖÆ´«Ê䷽ʽ¡£
70.umask[newmask]£º½«Ô¶³Ì·þÎñÆ÷µÄȱʡumaskÉèÖÃΪnewmask£¬È磺umask 3
71.user user-name[password][account]£ºÏòÔ¶³ÌÖ÷»ú±íÃ÷×Ô¼ºµÄÉí·Ý£¬ÐèÒª¿ÚÁîʱ£¬±ØÐëÊäÈë¿ÚÁÈ磺user anonymous my@email¡£
72.verbose£ºÍ¬ÃüÁîÐеÄ-v²ÎÊý£¬¼´ÉèÖÃÏ꾡±¨¸æ·½Ê½£¬ftp ·þÎñÆ÷µÄËùÓÐÏì Ó¦¶¼½«ÏÔʾ¸øÓû§£¬È±Ê¡Îªon.
73.?[cmd]£ºÍ¬help.