diff options
| author | srdusr <[email protected]> | 2022-12-06 23:57:17 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2022-12-06 23:57:17 +0200 |
| commit | 11ca43c5c1524a7f74a6e6f9678a71678e13707c (patch) | |
| tree | 34775345904da84542d678ff1429bd12c808b272 /tools/ssh.md | |
| parent | 6a56ef7c6fdf621f2f11419b2c6682267c5f56bb (diff) | |
| download | notes-11ca43c5c1524a7f74a6e6f9678a71678e13707c.tar.gz notes-11ca43c5c1524a7f74a6e6f9678a71678e13707c.zip | |
Fixed formatting
Diffstat (limited to 'tools/ssh.md')
| -rw-r--r-- | tools/ssh.md | 37 |
1 files changed, 13 insertions, 24 deletions
diff --git a/tools/ssh.md b/tools/ssh.md index 470f8c7..b94a0a3 100644 --- a/tools/ssh.md +++ b/tools/ssh.md @@ -33,36 +33,25 @@ * To view the log output from the server process. `logcat -s 'syslog:*'` -* Locking and unlocking the file system from read-only to read-write and vice-versa. -* How to copy files to an Android emulator’s data directory with ‘adb push’ -mount -o rw,remount rootfs / -* Revert the changes back after finishing the changes! -cat /proc/mounts -mount -o ro,remount rootfs / +#### Copying files +1. Copy single file from local to remote using scp. +$ `scp myfile.txt remoteuser@remoteserver:/remote/folder/` -*1 Copy single file from local to remote using scp. -$ scp myfile.txt remoteuser@remoteserver:/remote/folder/ +2. scp from remote to local using a single file. +$ `scp remoteuser@remoteserver:/remote/folder/remotefile.txt localfile.txt` -*2 scp from remote to local using a single file . -$ scp remoteuser@remoteserver:/remote/folder/remotefile.txt localfile.txt +* Copy multiple files from remote to local: +$ `scp [email protected]:/some/remote/directory/\{a,b,c\} ./` +* Copy multiple files from local to remote: + $ `scp foo.txt bar.txt [email protected]:~` + $ `scp {foo,bar}.txt [email protected]:~` + $ `scp *.txt [email protected]:~` - -Copy multiple files from remote to local: - -$ scp [email protected]:/some/remote/directory/\{a,b,c\} ./ - -Copy multiple files from local to remote: - -$ scp foo.txt bar.txt [email protected]:~ -$ scp {foo,bar}.txt [email protected]:~ -$ scp *.txt [email protected]:~ - -Copy multiple files from remote to remote: - -$ scp [email protected]:/some/remote/directory/foobar.txt \ +* Copy multiple files from remote to remote: + $ `scp [email protected]:/some/remote/directory/foobar.txt \` |