Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxÏÂscpµÄÓ÷¨

 LinuxÏÂscpµÄÓ÷¨
scp¾ÍÊÇsecure copy£¬Ò»¸öÔÚlinuxÏÂÓÃÀ´½øÐÐÔ¶³Ì¿½±´ÎļþµÄÃüÁî¡£
ÓÐʱÎÒÃÇÐèÒª»ñµÃÔ¶³Ì·þÎñÆ÷ÉϵÄij¸öÎļþ£¬¸Ã·þÎñÆ÷¼ÈûÓÐÅäÖÃftp·þÎñÆ÷£¬Ò²Ã»ÓÐ×ö¹²Ïí£¬ÎÞ·¨Í¨¹ý³£¹æ;¾¶»ñµÃÎļþʱ£¬Ö»ÐèҪͨ¹ý¼òµ¥µÄscpÃüÁî±ã¿É´ïµ½Ä¿µÄ¡£
Ò»¡¢½«±¾»úÎļþ¸´ÖƵ½Ô¶³Ì·þÎñÆ÷ÉÏ
#scp /home/administrator/news.txt root@192.168.6.129:/etc/squid
/home/administrator/      ±¾µØÎļþµÄ¾ø¶Ô·¾¶
news.txt                          Òª¸´ÖƵ½·þÎñÆ÷Éϵı¾µØÎļþ
root                                 ͨ¹ýrootÓû§µÇ¼µ½Ô¶³Ì·þÎñÆ÷£¨Ò²¿ÉÒÔʹÓÃÆäËûÓµÓÐͬµÈȨÏÞµÄÓû§£©
192.168.6.129                Ô¶³Ì·þÎñÆ÷µÄipµØÖ·£¨Ò²¿ÉÒÔʹÓÃÓòÃû»ò»úÆ÷Ãû£©
/etc/squid                       ½«±¾µØÎļþ¸´ÖƵ½Î»ÓÚÔ¶³Ì·þÎñÆ÷ÉϵÄ·¾¶
Èçͼͨ¹ýrootÓû§µÇ¼Զ³Ì·þÎñÆ÷£¬ÊäÈëyes±íʾͬÒ⽨Á¢sshÁ¬½Ó
°´ÌáʾÊäÈërootÓû§µÄÃÜÂë
ÈçͼËùʾ½¨Á¢Á¬½Óºó¿ªÊ¼´«ÊäÎļþ£¬ÏÔʾ°Ù·Ö±È¡¢Êµ¼Êʱ¼äºÍ´«ËÍËٶȵÈÐÅÏ¢
¶þ¡¢½«Ô¶³Ì·þÎñÆ÷ÉϵÄÎļþ¸´ÖƵ½±¾»ú
#scp remote@www.abc.com:/usr/local/sin.sh /home/administrator
remote                       ͨ¹ýremoteÓû§µÇ¼µ½Ô¶³Ì·þÎñÆ÷£¨Ò²¿ÉÒÔʹÓÃÆäËûÓµÓÐͬµÈȨÏÞµÄÓû§£©
www.abc.com              Ô¶³Ì·þÎñÆ÷µÄÓòÃû£¨µ±È»Ò²¿ÉÒÔʹÓø÷þÎñÆ÷ipµØÖ·£©
/usr/local/sin.sh           Óû¸´ÖƵ½±¾»úµÄλÓÚÔ¶³Ì·þÎñÆ÷ÉϵÄÎļþ
/home/administrator  ½«Ô¶³ÌÎļþ¸´ÖƵ½±¾µØµÄ¾ø¶Ô·¾¶
×¢ÒâÁ½µã£º
1.Èç¹ûÔ¶³Ì·þÎñÆ÷·À»ðǽ


Ïà¹ØÎĵµ£º

LinuxÍø¹Ü±Ê¼Ç£¨18£©£º¶ÔLinuxϵͳϵĿª·¢»·¾³ÊáÀí

      ¾¡¹ÜLinux¿ª·¢µÄÏà¹Ø¸ÚλºÜ¶à£¬µ«³¤ÆÚÒÔÀ´Linux¿ª·¢Ã»ÓÐͳһµÄ¿ª·¢Æ½Ì¨£¬´ó¶àÊýµÄ¿ª·¢Õ߶¼Ö±½ÓʹÓÃVI¡¢GCCµÈÃüÁîÐй¤¾ß£¬ÕâÑùÆäʵ²»ÀûÓÚ´óÐÍÏîÄ¿µÄ¿ª·¢¡£ 1.ÒÀÈ»ÊÇÊìϤµÄ¿ª·¢Á÷³Ì ÔÚLinux²Ù×÷ϵͳÖУ¬CÓïÑÔ³ÌÐòµÄ¿ª·¢ºÍÆäËû»·¾³ÀàËÆ£¬³ÌÐòÉú³ÉÖ÷Òª·Ö³É±àÒë¡¢»ã±à¡¢Á¬½ÓµÈ¼¸¸ö²½Öè¡£ ± ......

linuxÍøÂç±à³Ì

 ¹ØÓÚlinuxµÄ¶Áд²Ù×÷
½¨Á¢ÁËÁ¬½Ó,¾Í¿ÉÒÔ½øÐÐͨѶÁË,ÍùÎļþÃèÊö·ûÀï¶Áд,ºÍ¶ÁдÎļþÊÇÒ»ÑùµÄ.
дº¯Êý:
ssize_t write(int fd,(void *)buf,size_t nbytes)
½«bufÖеÄnbytesдÈëµ½fdÖÐ,³É¹¦Ê±·µ»ØËùдµÄ×Ö½ÚÊý,ʧ°Üʱ·µ»Ø-1,²¢Ð´Èëerrno±äÁ¿.
µ±ÎÒÃÇÏóÌ×½Ó×ÖдÊý¾Ýʱ,¿ÉÄÜ»áÓÐÁ½ÖÖÇé¿ö:
a.writeµÄ·µ»ØÖµ´óÓÚ0,±íʾ ......

¡¾×ª]Linux FTPÃüÁîÏê½â¼°Ê¹Óü¼ÇÉ

FTP>ascii: É趨ÒÔASCII·½Ê½´«ËÍÎļþ(ȱʡֵ)
FTP>bell: ÿÍê³ÉÒ»´ÎÎļþ´«ËÍ,±¨¾¯Ìáʾ.
FTP>binary: É趨ÒÔ¶þ½øÖÆ·½Ê½´«ËÍÎļþ.
FTP>bye: ÖÕÖ¹Ö÷»úFTP½ø³Ì,²¢Í˳öFTP¹ÜÀí·½Ê½.
FTP>case: µ±ÎªONʱ,ÓÃMGETÃüÁ±´µÄÎļþÃûµ½±¾µØ»úÆ÷ÖÐ,È«²¿×ª»»ÎªÐ¡Ð´×Öĸ.
FTP>cd: ͬUNIXµÄCDÃüÁî.
FTP>c ......

Linux atÃüÁʱ¹Ø»ú

from: http://www.pcstu.com/system/Linux/20090804/65873.html
±¾ÎĽéÉÜÏÂlinux atÃüÁîµÄÁíÒ»¸ö×÷ÓãºlinuxÏÂʹÓÃlinux atÃüÁʱ¹Ø»ú¡£
Ê×ÏÈ´´½¨Ò»¸öÎļþ,дÈ룺
#!/bin/sh
shutdown -h now
±£´æΪpowerÎļþ.Ö®ºó
chmod +x powerÖ®ºó¾ÍÄÜʹÓÃlinux atÃüÁʱ¹Ø»úÁË.
µ«ÊÇÐèÒªÓÐrootȨÏÞ²ÅÄܹػú,
ËùÒÔÐè ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ