System Grab Bag

View all TLDR pages from common (or from all pages)

dash

Debian Almquist Shell, a modern, POSIX-compliant implementation of sh (not Bash-compatible). More information: https://manned.org/dash.
  • Start an interactive shell session:
    dash
  • Execute specific [c]ommands:
    dash -c "{{echo 'dash is executed'}}"
  • Execute a specific script:
    dash {{path/to/script.sh}}
  • Check a specific script for syntax errors:
    dash -n {{path/to/script.sh}}
  • Execute a specific script while printing each command before executing it:
    dash -x {{path/to/script.sh}}
  • Execute a specific script and stop at the first [e]rror:
    dash -e {{path/to/script.sh}}
  • Execute specific commands from stdin:
    {{echo "echo 'dash is executed'"}} | dash

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.