Linux: What is Dash ( /bin/dash ) Shell?

Linux: What is Dash ( /bin/dash ) Shell?

dash (short for "Debian Almquist shell") is a Unix shell that is similar to the Bourne shell (/bin/sh). It is a lightweight shell that is designed to be faster and more efficient than other shells such as bash.

dash is the default /bin/sh shell on many Linux distributions, including Debian and Ubuntu. It is used for executing scripts and for running commands in a terminal.

dash is a POSIX-compliant shell, which means that it follows the POSIX standard for shells. This makes it more portable and easier to use on different systems. However, dash does not support all of the features and extensions that are available in other shells such as bash.

You can use dash as your default shell by changing the SHELL variable in the /etc/passwd file. You can also specify dash as the interpreter for a script by including the following line at the top of the script:

#!/bin/dash
Source‮al.www:‬utturi.com

This will tell the system to use dash to execute the script.

Note: Some scripts and programs may not work properly with dash due to differences in the way it handles certain commands and features. In these cases, you may need to use a different shell such as bash to run the script.

Created Time:2017-10-30 10:17:47  Author:lautturi