Skip to content

Instantly share code, notes, and snippets.

@scwood
Created January 31, 2019 22:13
Show Gist options
  • Select an option

  • Save scwood/e18bfc5660871edc5fa68eb41cffd7c0 to your computer and use it in GitHub Desktop.

Select an option

Save scwood/e18bfc5660871edc5fa68eb41cffd7c0 to your computer and use it in GitHub Desktop.
scp example pt. 2
$ 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