天天看点

linux 之间互传文件

两个linux 之间如何互传文件呢?

安装qq? 但是有的linux 系统安装不了qq.

使用u盘,太麻烦了!

使用samba?还得一堆配置

 方法一:scp

使用scp 命令就可以轻松搞定.

linux 之间互传文件

 scp [email protected]:/usr/local/src/freetds-stable.tgz ./  

scp [email protected]:/var/www/html/sql2.php /var/www/html/  

 scp [email protected]:/home/whuang/software/apache/apache-tomcat-7.0.53.tar.gz ./  

scp -r  [email protected]:/home/whuang/software/apache/apache-tomcat-7.0.53/webapps/yhyc ./  

scp -r  [email protected]:/home/whuang/software/apache/tomcat-7.0.53/webapps/yhyc ./  

linux 之间互传文件

 方式二:svn

另外一种方式是使用svn,比如我要把文件从主机a 传输到主机b,那么我可以把文件提交到a 的svn服务器,然后在b 中checkout 即可

方式三:mount

 mount //192.168.1.125/software /mnt/win -o user=administrator,password=123456

说明:administrator是操作系统用户名,123456是密码