mac上操作:本地文件复制到远程Linux文件
2019-06-14 本文已影响0人
晓晓桑
bug:本地文件找不到,提示:本地文件No such file or directory
ubuntu@VM-0-16-ubuntu:~$ scp /Users/wuzhixiao/Documents/dowork/java/java_lose_weight/target/moment-0.0.1-SNAPSHOT.jar ubuntu@118.25.110.49:./
ubuntu@118.25.110.49's password:
/Users/wuzhixiao/Documents/dowork/java/java_lose_weight/target/moment-0.0.1-SNAPSHOT.jar: No such file or directory
解决: 先cd到本地文件到所在到文件夹,在执行。如下
xiaoxiaodeMacBook-Pro:~ wuzhixiao$ cd /Users/wuzhixiao/Documents/dowork/java/java_lose_weight/out/artifacts/loseweight_jar
xiaoxiaodeMacBook-Pro:loseweight_jar wuzhixiao$ scp /Users/wuzhixiao/Documents/dowork/java/java_lose_weight/out/artifacts/loseweight_jar/moment.jar ubuntu@118.25.110.49:./
ubuntu@118.25.110.49's password:
moment.jar 57% 22MB 82.2KB/s 03:29 ETA