The reboot command is used to restart a Linux system immediately or at a scheduled time. It safely stops running processes and reboots the machine.
▶️ Basic Usage
sudo reboot
✔ Restarts the system immediately
✔ Requires root or sudo privileges
⏱️ Schedule a Reboot
Reboot in 10 minutes
sudo shutdown -r +10
Reboot at a specific time (e.g., 11:00 PM)
sudo shutdown -r 23:00
❌ Cancel a Scheduled Reboot
sudo shutdown -c
⚡ Force Reboot (Use Carefully)
sudo reboot -f
✔ Skips normal shutdown process
⚠️ May cause data loss
🔄 Alternative Commands
sudo systemctl reboot
✔ Uses the modern systemd method
⚠️ Common Issues
“Permission denied”
- Use
sudoor switch to root
System hangs on reboot
- Try forced reboot (
-f) as a last resort
🧠 When to Use reboot
- After installing updates or drivers
- System becomes unresponsive
- Kernel or configuration changes
💡 Pro Tip
Always save your work and close applications before rebooting to avoid data loss—especially on production systems.