mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 00:02:07 +02:00
33 lines
670 B
Markdown
33 lines
670 B
Markdown
# bash
|
|
|
|
> Bourne-Again SHell.
|
|
> `sh`-ondersteunende commandoregel-interpreteerder.
|
|
> Meer informatie: <https://gnu.org/software/bash>.
|
|
|
|
- Start interactieve shell:
|
|
|
|
`bash`
|
|
|
|
- Voer een commando uit:
|
|
|
|
`bash -c "{{commando}}"`
|
|
|
|
- Voer commando's van bestand uit:
|
|
|
|
`bash {{bestand.sh}}`
|
|
|
|
- Voer commando's van bestand uit, en print alle uitgevoerde commando's naar de terminal:
|
|
|
|
`bash -x {{bestand.sh}}`
|
|
|
|
- Voer commando's van bestand uit, en stop bij de eerste fout:
|
|
|
|
`bash -e {{bestand.sh}}`
|
|
|
|
- Voer commando's van stdin uit:
|
|
|
|
`bash -s`
|
|
|
|
- Print de versieinformatie van bash (gebruik `echo $BASH_VERSION` om alleen de versie te krijgen zonder licentie):
|
|
|
|
`bash --version`
|