diff --git a/README.md b/README.md index 3d7a8bc..f10becb 100644 --- a/README.md +++ b/README.md @@ -674,9 +674,9 @@ pwd - - - + + + @@ -702,6 +702,7 @@ pwd +
sshwhoamipasswdsshwhoamipasswd quota date calwhois dig wgetscp
@@ -824,6 +825,24 @@ wget file ``` +### y. `scp` +Transfer files between a local host and a remote host or between two remote hosts. + +*copy from local host to remote host* +```bash +scp source_file user@host:directory/target_file +``` +*copy from remote host to local host* +```bash +scp user@host:directory/source_file target_file +scp -r user@host:directory/source_folder farget_folder +``` +This command also accepts an option `-P` that can to used to connect to specific port. +```bash +scp -P port user@host:directory/source_file target_file +``` + + # 2. Basic Shell Programming