snippetbashTip
sh — Bourne shell, the standard command language interpreter. See also: `!`, `^`. More information: <http
Viewed 0 times
theshellcommandshclistandardbourne
Problem
How to use the
sh command: Bourne shell, the standard command language interpreter. See also: !, ^. More information: <https://manned.org/sh>.Solution
sh — Bourne shell, the standard command language interpreter. See also: !, ^. More information: <https://manned.org/sh>.Start an interactive shell session:
shExecute a command and then exit:
sh -c "{{command}}"Execute a script:
sh {{path/to/script.sh}}Read and execute commands from
stdin:sh -sCode Snippets
Start an interactive shell session
shExecute a command and then exit
sh -c "{{command}}"Execute a script
sh {{path/to/script.sh}}Read and execute commands from `stdin`
sh -sContext
tldr-pages: common/sh
Revisions (0)
No revisions yet.