sh

POSIX shell

medium risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

On Debian/Ubuntu sh is dash; on RHEL it is bash in POSIX mode. Bash-only syntax ([[ ]], arrays) fails.

Common flags
FlagMeaning
-cRun a command string
-xTrace
-nSyntax check
Examples
sh -n script.shCheck syntax · explain & risk-check →
sh -c "echo $0" testRun a string · explain & risk-check →
Related
bash
Open the full explainer →More in Shell & Scripting

Reference text is hand-written and may be incomplete — check man sh for your version. Test destructive commands on a non-production system first.