Enable a unit to start automatically.
Section: Enable, Disable, Mask
Enable on boot
bash
bash
sudo systemctl enable nginxExplanation
Creates the appropriate symlinks so the service starts at boot.
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 Enable, Disable, Mask