RebootX is a powerful and safe reboot tool for Linux systems.
It gives you more control and safety than the normal reboot command.
-
Safe Reboot – Unmounts all file systems before restarting.
-
Message Broadcast – Sends a message to all logged-in users on real TTYs or SSH sessions. Messages do not appear on normal GUI terminals.
-
Delay Option – Adds a custom delay before rebooting.
-
Force Reboot – Forces an immediate reboot when needed.
-
Logging – Records only safe and force reboot operations in
/var/log/rebootx.log. -
Works on Kali Linux, Ubuntu, Debian, RHEL, Fedora, Arch, etc.
Before building RebootX, make sure the required build tools are installed on your system.
Debian/Ubuntu/Kali/Parrot:
sudo apt install build-essential -yArch/BlackArch/Manjaro:
sudo pacman -Syu base-devel --noconfirmFedora/RHEL/CentOS:
sudo dnf groupinstall "Development Tools" -yThese packages ensure that gcc and make are available for compiling and building RebootX
- Clone the repository
git clone https://github.com/s-r-e-e-r-a-j/RebootX.git- Go to the RebootX directory
cd RebootX- Build the program
make- Install on your system
make installRun as root (or with sudo):
# Normal reboot
sudo rebootx
# with options
sudo rebootx [options]| Option | Description |
|---|---|
--safe |
Performs a safe reboot by syncing and unmounting all file systems before rebooting. |
--force |
Forces an immediate reboot without asking for confirmation. Can be combined with --safe or --delay. |
--delay <seconds> |
Waits for the specified number of seconds with a visible countdown before rebooting. |
--msg "text" |
Broadcasts a message to all logged-in users on real TTYs or SSH sessions (not shown on GUI terminals). |
--help |
Displays usage information. |
Normal reboot
sudo rebootxSafe reboot
sudo rebootx --safeForce reboot
sudo rebootx --forceForce safe reboot
sudo rebootx --force --safeSend message before reboot
sudo rebootx --msg "System will reboot soon"Safe reboot with message and 10-second delay
sudo rebootx --safe --msg "Rebooting in 10 seconds" --delay 10Force safe reboot with message and delay
sudo rebootx --force --safe --msg "Rebooting in 5 seconds" --delay 5Show Usage
sudo rebootx --helpsudo rm -f /usr/local/bin/rebootxThis project is licensed under the MIT License