Created
January 31, 2019 22:13
-
-
Save scwood/e18bfc5660871edc5fa68eb41cffd7c0 to your computer and use it in GitHub Desktop.
scp example pt. 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ssh b1 | |
| Last login: Thu Jan 31 15:08:19 2019 from 10.82.35.207 | |
| [ops.b1-prv][swood@rampart1-app ~]$ mkdir -p foo/bar/codebase | |
| [ops.b1-prv][swood@rampart1-app ~]$ touch foo/bar/codebase/a.c | |
| [ops.b1-prv][swood@rampart1-app ~]$ touch foo/bar/codebase/b.c | |
| [ops.b1-prv][swood@rampart1-app ~]$ cd foo/bar/codebase/ | |
| [ops.b1-prv][swood@rampart1-app codebase]$ pwd | |
| /mnt/home/swood/foo/bar/codebase | |
| [ops.b1-prv][swood@rampart1-app codebase]$ logout | |
| Shared connection to rampart.b1-prv.qops.net closed. | |
| $ scp -r b1:/mnt/home/swood/foo/bar/codebase . | |
| b.c 100% 0 0.0KB/s 00:00 | |
| a.c 100% 0 0.0KB/s 00:00 | |
| $ ls | |
| codebase | |
| # after editing the files.... | |
| scp -r ./codebase b1:/mnt/home/swood/foo/bar/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment