Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

AWS Cloud

sh vs bash

This comparison card contrasts sh and bash. sh is described as pOSIX, small, often dash. bash is described as arrays, [[ ]], more features. The card pairs sh with tiny portable scripts, and bash with most ops scripts.

sh vs bash: POSIX, small, often dash.; Arrays, [[ ]], more features.
sh vs bash · Download PNG
Read card text

What this card says

Shell

sh

POSIX, small, often dash.

bash

Arrays, [[ ]], more features.

Key points

Runs anywhere.

Linux default login shell.

Example

#!/bin/sh

Use when

Tiny portable scripts.

Most ops scripts.

See all AWS revision cards