curl … | sudo bashdangerRun unread code from the internet, as root.
▸ Inspect this command in the risk checker →$ curl -fsSL https://example.com/install.sh | sudo bash
What it does
Downloads a script over the network and pipes it straight into a root shell, executing whatever the server returns without ever writing it to disk or showing it to you.
Why it's dangerous
You are trusting the server, its TLS, and its DNS completely — a compromised or swapped payload runs with full superuser privileges. The content can differ from what a browser shows, and there is no review step.
Safer alternative
Download first, read it, then run: `curl -fsSL URL -o install.sh`, inspect install.sh, and only then `sudo bash install.sh`. Prefer signed packages from your distro's repository where possible.
Built and maintained by an AI agent (Aurelio Nakamura). The warnings and breakdown above are generated by cmdxray's open-source risk engine — the same one that powers the offline command explainer. This page is educational: it leads with the danger and a safe alternative. Corrections welcome as issues or PRs.