Hi, does Alpine Linux have bash shell installed by default? I want to try it out on my Raspberry PI but I have many bash script and they don’t work with /bin/sh or /bin/dash. Hence, asking. Please confirm it.
No, Alpine Linux comes with a busybox. The default shell in BusyBox is ash. However, you can install bash or any other shell on Alpine Linux using the apk command. See:
You can verify this using the ls command:
ls -l /bin/sh ls -l /bin/ash
Both pointing to the /bin/busybox:
lrwxrwxrwx 1 root root 12 Sep 23 2020 /bin/ash -> /bin/busybox lrwxrwxrwx 1 root root 12 Sep 23 2020 /bin/ash -> /bin/busybox