Skip to content

Commit 67d97a1

Browse files
JureMalovrhAdnan Ahmed
authored and
Adnan Ahmed
committed
Added scp command (Idnan#7)
* Added scp command * Fixed links under Network operations
1 parent cc0e189 commit 67d97a1

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

README.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -674,9 +674,9 @@ pwd
674674

675675
<table>
676676
<tr>
677-
<td><a href="#a-mkdir">ssh</a></td>
678-
<td><a href="#b-cd">whoami</a></td>
679-
<td><a href="#c-pwd">passwd</a></td>
677+
<td><a href="#a-ssh">ssh</a></td>
678+
<td><a href="#b-whoami">whoami</a></td>
679+
<td><a href="#c-passwd">passwd</a></td>
680680
<td><a href="#d-quota">quota</a></td>
681681
<td><a href="#e-date">date</a></td>
682682
<td><a href="#f-cal">cal</a></td>
@@ -702,6 +702,7 @@ pwd
702702
<td><a href="#v-whois">whois</a></td>
703703
<td><a href="#w-dig">dig</a></td>
704704
<td><a href="#x-wget">wget</a></td>
705+
<td><a href="#y-scp">scp</a></td>
705706
</tr>
706707
</table>
707708

@@ -824,6 +825,24 @@ wget file
824825
```
825826

826827

828+
### y. `scp`
829+
Transfer files between a local host and a remote host or between two remote hosts.
830+
831+
*copy from local host to remote host*
832+
```bash
833+
scp source_file user@host:directory/target_file
834+
```
835+
*copy from remote host to local host*
836+
```bash
837+
scp user@host:directory/source_file target_file
838+
scp -r user@host:directory/source_folder farget_folder
839+
```
840+
This command also accepts an option `-P` that can to used to connect to specific port.
841+
```bash
842+
scp -P port user@host:directory/source_file target_file
843+
```
844+
845+
827846
# 2. Basic Shell Programming
828847

829848

0 commit comments

Comments
 (0)