首页 > 代码库 > linux_cp_远程copy

linux_cp_远程copy

1:远程copy  
scp tieba_search_crawler.tar.gz heyirong@192.168.0.197:/home/heyirong 
sc 目录名(目录的话,包含最后的/)  用户名@ip:目标路径
 
2: 压缩排除目录

tar cvf tieba_search_crawler0825.tar.gz tieba_search_crawler --exclude=log

查看压缩目录:

tar tf tieba_search_crawler0825.tar.gz

 tar tf tieba_search_crawler0825.tar.gz  |more

linux_cp_远程copy