linuxÔõôÓÃszÏÂÁî
linux µÄ sz ÏÂÁîÓÃÓÚÔÚ´®¿ÚÖÕ¶ËÉϾÙÐÐÎļþ´«Ê䣬Æä»ù±¾Ó﷨Ϊ sz [Ñ¡Ïî] ÎļþÃû£¬ÆäÖг£¼ûÑ¡ÏîÓУº-a ×Ô¶¯Ó¦´ð£¬-b ¿éģʽ£¬-c ´«Êäºó¹Ø±ÕÅþÁ¬£¬-r ÎüÊÕÎļþ£¬-s ·¢ËÍÎļþ¡£sz ÏÂÁ¿ÉÓÃÓÚÖ´ÐÐÔ¶³ÌÏÂÁî¡¢ÉèÖô«Êä²ÎÊýºÍ½¨Éè¾ç±¾£¬´«ÊäËÙÂÊÈ¡¾öÓÚ´®¿ÚÄÜÁ¦ºÍÍøÂçÌõ¼þ¡£
Linux ÖÐµÄ sz ÏÂÁî
sz ÏÂÁîÓÃÓÚÔÚ´®¿ÚÖÕ¶ËÉϾÙÐÐÎļþ´«Êä¡£
ʹÓÃÒªÁì
sz ÏÂÁîµÄ»ù±¾Óï·¨ÈçÏ£º
sz [Ñ¡Ïî] ÎļþÃû
µÇ¼ºó¸´ÖÆ
ÆäÖУº
[Ñ¡Ïî] ÊÇ¿ÉÑ¡Ñ¡ÏÓÃÓÚ¿ØÖÆ´«ÊäÐÐΪ¡£
ÎļþÃû ÊÇÒª´«ÊäµÄÎļþÃû£¬¿ÉÒÔÖ¸¶¨Ô¶³Ì»òÍâµØÎļþ¡£
Ñ¡Ïî
sz ÏÂÁîµÄһЩ³£¼ûÑ¡Ïî°üÀ¨£º
-a£º×Ô¶¯Ó¦´ð£¬ÔÚ´«Êä×îÏÈʱ²»ÌáÐÑ¡£
-b£ºÊ¹Óÿéģʽ£¬Ìá¸ß´«ÊäЧÂÊ¡£
-c£ºÔÚ´«ÊäÍê³Éºó¹Ø±ÕÅþÁ¬¡£
-r£ºÎüÊÕÎļþ¡£
-s£º·¢ËÍÎļþ¡£
ʾÀý
·¢ËÍÎļþµ½Ô¶³ÌÖ÷»ú£º
sz -s file.txt user@remotehost:/path/to/destination
µÇ¼ºó¸´ÖÆ
ÎüÊÕÎļþ´ÓÔ¶³ÌÖ÷»ú£º
sz -r user@remotehost:/path/to/source file.txt
µÇ¼ºó¸´ÖÆ
ÆäËûÓ÷¨
³ýÁËÎļþ´«ÊäÍ⣬sz ÏÂÁ¿ÉÓÃÓÚÖ´ÐÐÆäËû²Ù×÷£¬ÀýÈ磺
Ö´ÐÐÔ¶³ÌÏÂÁÌí¼Ó -x Ñ¡Ïîºó£¬¿ÉÒÔÖ¸¶¨ÔÚ´«ÊäÍê³ÉºóÔÚÔ¶³ÌÖ÷»úÉÏÖ´ÐÐÏÂÁî¡£
ÉèÖô«Êä²ÎÊý£ºÊ¹Óà -T Ñ¡Ï¿ÉÒÔÉèÖô®¿ÚͨѶ²ÎÊý£¬ÀýÈ粨ÌØÂʺÍÊý¾Ýλ¡£
½¨Éè¾ç±¾£ºÊ¹Óà -E Ñ¡Ï¿ÉÒÔ½¨ÉèÒ»¸ö¾ç±¾£¬ÓÃÓÚ×Ô¶¯»¯Îļþ´«ÊäºÍÆäËû²Ù×÷¡£
×¢ÖØ
´«ÊäËÙÂÊÈ¡¾öÓÚ´®¿ÚͨѶÄÜÁ¦ºÍÍøÂçÌõ¼þ¡£È·±£´®¿ÚÉèÖÃÓëÔ¶³ÌÖ÷»úÆ¥Åä¡£
ÒÔÉϾÍÊÇlinuxÔõôÓÃszÏÂÁîµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡