Read a value interactively.
Section: Input Output and Pipelines
Prompt user for input
bash
bash
read -rp 'Enter environment: ' envExplanation
Useful for operator-driven scripts and local helpers.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Input Output and Pipelines