linux ftp ÃüÁîÏê½âºÍ×Ô¶¯ÉÏ´«½Å±¾ÊµÏÖ
FTP>ascii: É趨ÒÔASCII·½Ê½´«ËÍÎļþ(ȱʡֵ)
FTP>bell: ÿÍê³ÉÒ»´ÎÎļþ´«ËÍ,±¨¾¯Ìáʾ.
FTP>binary: É趨ÒÔ¶þ½øÖÆ·½Ê½´«ËÍÎļþ.
FTP>bye: ÖÕÖ¹Ö÷»úFTP½ø³Ì,²¢Í˳öFTP¹ÜÀí·½Ê½.
FTP>case: µ±ÎªONʱ,ÓÃMGETÃüÁ±´µÄÎļþÃûµ½±¾µØ»úÆ÷ÖÐ,È«²¿×ª»»ÎªÐ¡Ð´×Öĸ.
FTP>cd: ͬUNIXµÄCDÃüÁî.
FTP>cdup: ·µ»ØÉÏÒ»¼¶Ä¿Â¼.
FTP>chmod: ¸Ä±äÔ¶¶ËÖ÷»úµÄÎļþȨÏÞ.
FTP>close: ÖÕÖ¹Ô¶¶ËµÄFTP½ø³Ì,·µ»Øµ½FTPÃüÁî״̬, ËùÓеĺ궨Ò嶼±»É¾³ý.
FTP>delete: ɾ³ýÔ¶¶ËÖ÷»úÖеÄÎļþ.
FTP>dir [remote-directory] [local-file] Áгöµ±Ç°Ô¶¶ËÖ÷»úĿ¼ÖеÄÎļþ.Èç¹ûÓб¾µØÎļþ,¾Í½«½á¹ûдÖÁ±¾µØÎļþ.
FTP>get [remote-file] [local-file] ´ÓÔ¶¶ËÖ÷»úÖд«ËÍÖÁ±¾µØÖ÷»úÖÐ.
FTP>help [command] Êä³öÃüÁîµÄ½âÊÍ.
FTP>lcd: ¸Ä±äµ±Ç°±¾µØÖ÷»úµÄ¹¤×÷Ŀ¼,Èç¹ûȱʡ,¾Íתµ½µ±Ç°Óû§µÄHOMEĿ¼.
FTP>ls [remote-directory] [local-file] ͬDIR.
FTP>macdef: ¶¨ÒåºêÃüÁî.
FTP>mdelete [remote-files] ɾ³ýÒ»ÅúÎļþ.
FTP>mget [remote-files] ´ÓÔ¶¶ËÖ÷»ú½ÓÊÕÒ»ÅúÎļþÖÁ±¾µØÖ÷»ú.
FTP>mkdir directory-name ÔÚÔ¶¶ËÖ÷»úÖн¨Á¢Ä¿Â¼.
FTP>mput local-files ½«±¾µØÖ÷»úÖÐÒ»ÅúÎļþ´«ËÍÖÁÔ¶¶ËÖ÷»ú.
FTP>open host [port] ÖØн¨Á¢Ò»¸öеÄÁ¬½Ó.
FTP>prompt: ½»»¥Ìáʾģʽ.
FTP>put local-file [remote-file] ½«±¾µØÒ»¸öÎļþ´«ËÍÖÁÔ¶¶ËÖ÷»úÖÐ.
FTP>pwd: Áгöµ±Ç°Ô¶¶ËÖ÷»úĿ¼.
FTP>quit: ͬBYE.
FTP>recv remote-file [local-file] ͬGET.
FTP>rename [from] [to] ¸Ä±äÔ¶¶ËÖ÷»úÖеÄÎļþÃû.
FTP>rmdir directory-name ɾ³ýÔ¶¶ËÖ÷»úÖеÄĿ¼.
FTP>send local-file [remote-file] ͬPUT.
FTP>status: ÏÔʾµ±Ç°FTPµÄ״̬.
FTP>system: ÏÔʾԶ¶ËÖ÷»úϵͳÀàÐÍ.
FTP>user user-name [password] [account] ÖØÐÂÒÔ±ðµÄÓû§ÃûµÇ¼Զ¶ËÖ÷»ú.
FTP>? [command]: ͬHELP. [command]Ö¸¶¨ÐèÒª°ïÖúµÄÃüÁîÃû³Æ¡£Èç¹ûûÓÐÖ¸¶¨ command£¬ftp ½«ÏÔʾȫ²¿ÃüÁîµÄÁÐ±í¡£
FTP>! ´Ó ftp ×ÓϵͳÍ˳öµ½Íâ¿Ç¡£
Àý×Ó£º ftp_data.sh
#! /bin/sh
ftp -i -n << !
open 192.168.0.1
user ftpuser ftppasswd
lcd /home/carryf/
put db_dmp_20100301.sql
bye
-----------------------------------------
Ïà¹ØÎĵµ£º
1. ×î³£ÓõÄÃüÁîÁбí
ÏÂÃæÁгöÊ®¸öÔÚʹÓÃlinux¹ý³ÌÖÐʹÓÃƵÂÊ×î¸ßµÄÃüÁî¡£ÕâÀïÖ»×÷¼òµ¥½éÉÜ£¬¾ßÌåÓ÷¨Çë²Î¿¼ºóÃæÄÚÈÝ¡£
cat£¬ÏÔʾÎļþÄÚÈÝ¡£
cd£¬¸Ä±äĿ¼·¾¶¡£
cp£¬¸´ÖÆÎļþ¡£
find£¬²éÕÒÎļþ¡£
grep£¬ËÑË÷¡¢¹ýÂËÐÅÏ¢¡£
ls£¬ÁгöĿ¼ÐÅÏ¢¡£
more£¬·ÖÒ³ÏÔʾ¡£
rm£¬É¾³ýÎļþ»òĿ¼¡£
vi£¬µ÷ÓÃviÎı¾±à¼Æ÷ ......
1. ÄÚ´æ·ÖÅ䷽ʽ
(1) ´Ó¾²Ì¬´æ´¢ÇøÓò·ÖÅä¡£ÄÚ´æÔÚ³ÌÐò±àÒëµÄʱºò¾ÍÒѾ·ÖÅäºÃ£¬Õâ¿éÄÚ´æÔÚ³ÌÐòµÄÕû¸öÔËÐÐÆڼ䶼´æÔÚ¡£ÀýÈ磺ȫ¾Ö±äÁ¿£¬static±äÁ¿¡£
(2) ÔÚÕ»ÉÏ´´½¨¡£ÔÚÖ´Ðк¯Êýʱ£¬º¯ÊýÄÚ¾Ö²¿±äÁ¿µÄ´æ´¢µ¥Ôª¶¼¿ÉÒÔÔÚÕ»ÉÏ´´½¨£¬º¯ÊýÖ´ÐнáÊøµÄʱºòÕâЩ´æ´¢µ¥Ôª×Ô¶¯±»ÊÍ·Å¡£Õ»ÄÚ´æ·ÖÅäÔËËãÄÚÖÃÓÚ´¦ÀíÆ÷µÄÖ¸ÁÖУ¬Ð§Âʺܸ ......
Ç°¼¸ÌìÖØ×°ÁËwindowsϵͳ£¬µ¼ÖÂÒÔÇ°°²×°µÄLinux½ø²»È¥ÁË£¬ÎÞ·¨½øÈëLinux£¬Óò»ÏëÖØа²×°Linux£¬ÄÇÑùÌ«·ÑÊÂÁË£¬ÔÚÍøÉÏËÑË÷ÁËһϣ¬ÕÒµ½»Ö¸´LinuxÒýµ¼µÄ·½·¨£¬¾ÊµÑ飬ÖØÐÂÒýµ¼½øÈëÔÀ´µÄLinuxϵͳ£¬Ôڴ˼òµ¥¼Ç¼һÏ£º
Ê×ÏÈ£¬ÏÂÔØÒ»¸öGrub4dos£¬½âѹµ½CÅ̸ùĿ¼Ï£¬°ÑÀïÃæµÄgrldr¸´ÖƵ½¸ùĿ¼Ï£¬ÐÞ¸Äboot.iniÎļþ£ ......
ΪÁË·½±ã±àд³ÌÐò£¬ÕûÀíÁËviÉèÖõÄС·½·¨£¡
ÓÉÃüÁî“vi --version”ËùÏÔʾµÄÄÚÈÝÖªviµÄÈ«¾ÖÅäÖÃÎļþÔÚ/usr/share/vim/vim61/macros/vimrc£»
Óû§ÅäÖÃÎļþÔÚ$HOME/.vimrc
ËÑË÷ÍøÉÏÎÄÕ²¢ÊµÑéµÃÖª£º
ÉèÖÃTAB¼üµÄÏÔʾ¿í¶È£ºset tabstop=4 & ......
LinuxͼÐλ¯Àú³Ì
×¢£º´Ë¶ÎÎÄÕÂ×ÛºÏÁËÖÚ¶à×ÊÁÏ£¬Ö÷ÒªÒýÓøöÈ˵çÄÔµÄÎÄÕÂ
̸ÆðOPIE£¬¾Í²»Äܲ»Ì¸Qt£¬È»¶øÒª¶ÔQtÓиöÀ´ÁúÈ¥ÂöµÄÈÏʶ£¬ÐèÒª´ÓLinux
ͼÐλ¯ËµÆð¡£ÈÃÎÒÃǻعËÏÂLinuxͼÐλ¯½çÃæ·¢Õ¹µÄÀúÊ·¡£
Linuxʵ¼ÊÉÏÊÇÒÔUNIXΪģ°åµÄ£¬Ëü¼Ì ......