From 6afbe09945be06c7d1448a03400cb55f4a7a26ab Mon Sep 17 00:00:00 2001 From: Like-all Date: Thu, 11 Sep 2014 15:28:06 +0400 Subject: [PATCH 1/2] common: sshfs --- pages/common/sshfs.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/sshfs.md diff --git a/pages/common/sshfs.md b/pages/common/sshfs.md new file mode 100644 index 0000000000..8fdeca2c9d --- /dev/null +++ b/pages/common/sshfs.md @@ -0,0 +1,19 @@ +# SSHFS + +> filesystem client based on ssh + +- mounting remote directory + +`sshfs {{username}}@{{remote_host}}:{{remote_directory}} {{mountpoint}}` + +- unmounting remote directory + +`fusermount -u {{mountpoint}}` + +- mounting remote directory from server with specific port + +`sshfs {{username}}@{{remote_host}}:{{remote_directory}} -p {{2222}}` + +- use compression + +`sshfs {{username}}@{{remote_host}}:{{remote_directory}} -C` From 67e91a371767e30cd3990ada6f21b6be61500e62 Mon Sep 17 00:00:00 2001 From: Like-all Date: Thu, 11 Sep 2014 18:37:41 +0400 Subject: [PATCH 2/2] common: tee --- pages/common/tee.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pages/common/tee.md diff --git a/pages/common/tee.md b/pages/common/tee.md new file mode 100644 index 0000000000..14695c237a --- /dev/null +++ b/pages/common/tee.md @@ -0,0 +1,11 @@ +#TEE + +> read from standard input and write to standard output and files + +- Copy standard input to each FILE, and also to standard output. + +`echo "example" | tee {{FILE}}` + +- append to the given FILEs, do not overwrite + +`echo "example" | tee -a {{FILE}}`