notes/Ubuntu/scp.md
2024-04-29 02:07:50 +08:00

14 lines
255 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### SCP
#### 将服务器上的文件传输到本地
```
scp username@servername:/path/filename /var/www/local_dir本地目录
```
#### 将本地文件上传到服务器
```
scp /path/filename username@servername:/path/(服务器目录)
```