🐧 reboot Command Guide (Restart Linux Safely)

🐧 reboot Command Guide (Restart Linux Safely)
Operating System(s)

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 sudo or 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.

Force Cache (Faster Mirror)

Linux Commands

Files

tar · pv · cat · tac · chmod · grep ·  diff · sed · ar · man · pushd · popd · fsck · testdisk · seq · fd · pandoc · cd · $PATH · awk · join · jq · fold · uniq · journalctl · tail · stat · ls · fstab · echo · less · chgrp · chown · rev · look · strings · type · rename · zip · unzip · mount · umount · install · fdisk · mkfs · rm · rmdir · rsync · df · gpg · vi · nano · mkdir · du · ln · patch · convert · rclone · shred · srm · scp · gzip · chattr · cut · find · umask · wc · tr · hash  · compgen

Processes

alias · screen · top · nice · renice · progress · strace · systemd · tmux · chsh · history · at · batch · free · which · dmesg · chfn · usermod · ps · chroot · xargs · tty · pinky · lsof · vmstat · timeout · wall · yes · kill · sleep · sudo · su · time · groupadd · usermod · groups · lshw · shutdown · reboot · halt · poweroff · passwd · lscpu · crontab · date · bg · fg · pidof · nohup · pmap

Networking

netstat · ping · traceroute · ip · ss · whois · fail2ban · bmon · dig · finger · nmap · ftp · curl · wget · who · whoami ·· iptables · ssh-keygen · ufw · arping · firewalld