mirror of
https://github.com/wahyd4/knowledge.git
synced 2026-08-09 13:15:52 +10:00
Add scp usage
This commit is contained in:
@@ -90,3 +90,17 @@ if ! nc -z localhost 5672; then
|
||||
sleep 3;
|
||||
fi
|
||||
```
|
||||
|
||||
### scp copy files between host
|
||||
|
||||
#### Copy files from remote server
|
||||
|
||||
```bash
|
||||
scp your_username@remotehost.edu:foobar.txt /local/dir
|
||||
```
|
||||
|
||||
### Copy local files to remote server
|
||||
|
||||
```bash
|
||||
scp /path/to/local/file user@server:/path/to/remote/file
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user