srdusr
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/ssh.md37
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 \`