set -euo pipefailFail fast on common scripting errors
bash -n script.shCheck script syntax
chmod +x script.shMake script executable
echo "$?"Print previous command's exit status
Commands are examples for a lab. Review permissions, environment and impact before running privileged commands on production systems.
VSCLINUX · DEVOPS · CLOUD
ABOUT THE CREATOR
Built with curiosity. Shared for growth.
VSC Linux Code is a practical learning space created to document Linux administration, DevOps tools, cloud technologies and hands-on troubleshooting. The goal is to make complex topics easier to understand with clear diagrams, commands and repeatable labs.