tldr/pages/common/bash.md

21 lines
243 B
Markdown
Raw Normal View History

2016-01-04 19:55:14 +00:00
# bash
> Bourne-Again SHell.
2016-01-04 19:55:14 +00:00
> `sh`-compatible command line interpreter.
2016-02-23 01:14:41 +00:00
- Start interactive shell:
2016-01-04 19:55:14 +00:00
`bash`
2016-02-23 01:14:41 +00:00
- Execute a command:
2016-01-04 19:55:14 +00:00
`bash -c {{command}}`
2016-02-23 01:14:41 +00:00
- Run commands from a file:
2016-01-04 19:55:14 +00:00
2016-02-23 01:14:41 +00:00
`bash {{file.sh}}`
2016-01-04 19:55:14 +00:00
2016-02-23 01:14:41 +00:00
- Run commands from STDIN:
2016-01-04 19:55:14 +00:00
2016-02-23 01:14:41 +00:00
`bash -s`