From b2ae924909662d2113b08327ee89edb1cac5964c Mon Sep 17 00:00:00 2001 From: Yanbing Date: Mon, 14 Jan 2019 22:32:22 -0800 Subject: [PATCH] Updated Run commands for various shells (markdown) --- Run-commands-for-various-shells.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Run-commands-for-various-shells.md b/Run-commands-for-various-shells.md index 7af02d5..6e91053 100644 --- a/Run-commands-for-various-shells.md +++ b/Run-commands-for-various-shells.md @@ -1,6 +1,6 @@ -Here are examples to run commands on remote shell over openssh: print out "hello" over various shells on server. +Examples to run commands on remote shells over openssh: print out "hello" over various shells on server. -| DefaultShell | cmd on local shell | cmd to print on remote shell (client cmd run in cmd prompt) | +| DefaultShell | cmd run on local shell | Cmd to run on remote shell (client cmd run in cmd prompt) | |:--|:--|:--| | powershell | echo `'"hello"'`
or ``echo `"hello`"`` |`c:\>ssh.exe localhost echo '\"hello\"'`
or ``c:\>ssh.exe winbox echo `\"hello`\"``
or ``c:\>ssh.exe localhost "echo `""hello`"""`` | | bash | ``echo \"hello\"``
or ``echo '"hello"'``| ``c:\>ssh winbox 'echo \"hello\"'``
or `c:\>ssh.exe winbox echo \\\"hello\\\"`
or `c:\>ssh winbox echo '\"hello\"'` |