srdusr
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2022-12-05 21:56:50 +0200
committersrdusr <[email protected]>2022-12-05 21:56:50 +0200
commit44dffbad510cce587a85797f034511605beefd60 (patch)
tree3a533c60f3a736fbdc46afcf9b5726d5313139f2
parentf7db394cf032599de9cb54f93682f3be4091d96a (diff)
downloadnotes-44dffbad510cce587a85797f034511605beefd60.tar.gz
notes-44dffbad510cce587a85797f034511605beefd60.zip
Add information about copying over ssh
-rw-r--r--tools/ssh.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/tools/ssh.md b/tools/ssh.md
index a02ee9a..27dd252 100644
--- a/tools/ssh.md
+++ b/tools/ssh.md
@@ -32,3 +32,37 @@
* 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 /
+
+
+#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
+
+
+
+
+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 \
+
+