reboot
Overview
The reboot
command restarts the system. It’s a simplified interface for the shutdown command that performs a system reboot.
Syntax
reboot [options]
Common Options
Option | Description |
---|---|
-f, --force |
Force reboot |
-w, --wtmp-only |
Just write wtmp record |
-d, --no-wtmp |
Don’t write wtmp record |
-n, --no-sync |
Don’t sync before reboot |
-p, --poweroff |
Power off instead |
--halt |
Halt the system |
-h, --help |
Show help |
-v, --version |
Show version |
Key Use Cases
- System restart
- Maintenance reboot
- Emergency restart
- Kernel updates
- Hardware changes
Examples with Explanations
Example 1: Basic Usage
reboot
Normal system reboot
Example 2: Force Reboot
reboot -f
Force immediate reboot
Example 3: Write Log Only
reboot -w
Only write wtmp record
Understanding Output
System messages: - Broadcast notification - Service shutdown - Process termination - System restart
Common Usage Patterns
Safe reboot:
reboot
Emergency reboot:
reboot -f
Simulate reboot:
reboot -w
Security Considerations
- User permissions
- Process handling
- Data integrity
- Service shutdown
- Hardware safety
Additional Resources
Best Practices
- Schedule reboots
- Notify users
- Check processes
- Save data
- Document actions
Process Handling
- Service shutdown
- Process termination
- File system sync
- Memory cleanup
- Hardware reset
Safety Checks
- Active users
- Running processes
- Open files
- System services
- Hardware status