scp: Update formatting

This commit is contained in:
Rico Sta. Cruz 2018-12-25 20:27:52 +08:00 committed by GitHub
parent fd17d3f1b6
commit 08d176e787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 4 deletions

6
scp.md
View File

@ -2,6 +2,8 @@
title: scp
category: CLI
layout: 2018/sheet
authors:
- github: vastpeng
---
### Usage
@ -24,8 +26,12 @@ scp <options> source_path destination_path
### Commands
```bash
$ scp file user@host:/path/to/file # copying a file to the remote system using scp command
$ scp user@host:/path/to/file /local/path/to/file # copying a file from the remote system using scp command
```
```bash
$ scp file1 file2 user@host:/path/to/directory # copying multiple files using scp command
$ scp -r /path/to/directory user@host:/path/to/directory # Copying an entire directory with scp command
```