🚀 A comprehensive collection of interactive shell scripts that makes Linux system administration simple, efficient, and enjoyable!
Linux Admin Toolkit is a powerful suite of interactive bash scripts designed to simplify system administration tasks on Red Hat-based Linux distributions. Whether you're a seasoned sysadmin or just starting out, these tools provide an intuitive menu-driven interface for complex administrative tasks.
- 🎯 No more memorizing commands - Everything is menu-driven
- 🛡️ Built-in safety checks - Confirmation prompts for critical operations
- 📊 Beautiful visual output - Color-coded results and Unicode formatting
- 🔧 All-in-one solution - From system checks to automation
- 📈 Real-time monitoring - Live system statistics and trends
- Comprehensive system analysis with 15 different check modules
- Real-time performance monitoring
- Security audit capabilities
- Automated health scoring system
- Detailed reporting functionality
- 15 powerful automation modules
- One-click system optimization
- Automated backup solutions
- Service monitoring and recovery
- Emergency recovery options
- Operating System: Red Hat Enterprise Linux, CentOS, Fedora, Rocky Linux, AlmaLinux
- Privileges: Root access required
- Shell: Bash 4.0+
- Dependencies: Standard Linux utilities (automatically checked)
# Clone the repository
git clone https://github.com/Pavel-P09/Linux-Admin-Toolkit.git
# Navigate to the directory
cd linux-admin-toolkit
# Make scripts executable
chmod +x system_check.sh system_automation.sh
# Run system check
sudo ./system_check.sh
# Run automation suite
sudo ./system_automation.shBoth scripts feature an intuitive numbered menu system. Simply run the script and choose an option:
# For system analysis
sudo ./system_check.sh
# For automation tasks
sudo ./system_automation.shThe System Check script provides comprehensive system analysis through 15 specialized modules:
- 🖥️ OS version and kernel details
- 🏗️ System architecture
- 🌐 Hostname and domain info
- ⏱️ Uptime and system load
- 👥 Active users monitoring
- 🔧 CPU specifications (cores, threads, cache)
- 💾 Memory configuration and slots
- 💿 Storage devices and partitions
- 🎮 PCI devices (GPU, network cards)
- 🌐 Interface status with IP addresses
- 🛣️ Routing tables
- 📡 DNS configuration
- 🔌 Active connections
- 🛡️ Firewall status
- 📊 Filesystem usage with types
- ⚡ Real-time I/O statistics
- 📁 Largest directories finder
- 🗂️ Inode usage monitoring
- 🔒 SELinux status check
- 🚫 Failed login attempts
- 🔓 Open ports analysis
⚠️ SUID files detection- 🔑 Password policy review
- ❌ Failed services detection
- 📈 CPU usage by service
- ⏱️ Boot time analysis
- ✅ Critical services monitoring
- 👤 Users with shell access
- 🔐 Sudo privileges audit
- 📅 Login history
- 📊 Resource limits
- 🔑 Password expiration check
- 📦 Installed packages count
- 🆕 Recently installed packages
- 🔄 Available updates
- 🔧 Broken dependencies check
- 📚 Repository status
- 🎯 Top CPU consumers
- 💭 Top memory consumers
- 📊 Virtual memory statistics
- 🔥 Per-core CPU usage
- 🚨 Recent system errors
- 🔐 Authentication logs
- 💻 Kernel messages
- 📏 Log file sizes
- 🏆 Automated scoring (0-100)
- 🎨 Color-coded health status
- 📋 Issue identification
- 💡 Health recommendations
- 💾 Backup location scanning
- 📅 Recent archives listing
- ⏰ Scheduled backup jobs
- 📈 CPU usage history
- 💾 Memory usage trends
- 🌐 Network traffic monitoring
- 🧠 Intelligent system analysis
- 💡 Optimization suggestions
⚠️ Problem identification- 🔧 Actionable advice
- 📄 Comprehensive system report
- 💾 Timestamped saving
- 👁️ Report preview
The System Automation script provides powerful automation capabilities through 15 specialized modules:
- 🗄️ Automated config backups
- 📦 Compressed archives
- 🕐 Timestamped organization
- 📋 Backup summaries
- 👥 Bulk user creation
- 🔑 Automated password generation
- 🗑️ Inactive user cleanup
- 🔒 Account locking/unlocking
- 📅 Password policy enforcement
- 🔄 Automatic log compression
- 🗑️ Old log deletion
- ✂️ Large log truncation
- 🧹 Journal cleanup
- 🔍 Update availability check
- 🛡️ Security-only updates
- 📦 Full system updates
- 🎯 Specific package updates
- ⏰ Scheduled auto-updates
- 🧹 Package cache cleanup
- 🌰 Old kernel removal
- 🗑️ Temporary file cleanup
- 🔍 Large file finder
- 🐳 Docker cleanup
- 📜 Certificate expiry monitoring
⚠️ Expiration warnings- 🔐 Self-signed cert generation
- 💾 Certificate backups
- 🔍 Certificate details viewer
- 🛡️ Rule listing and editing
- ➕ Service/port addition
- ➖ Rule removal
- 💾 Configuration backup
- 🔄 Rule restoration
- 🔍 Critical service checks
- 🔄 Auto-restart configuration
- 📝 Monitor script creation
- 📊 Service logs viewer
- 🔧 Failed service recovery
- 🧹 10-step cleanup process
- 💾 Memory cache clearing
- 📦 Package cleanup
- 🗑️ Orphaned package removal
- 📧 Mail queue check
- ⚙️ Kernel parameter optimization
- 💾 Swappiness configuration
- 🔥 CPU governor settings
- 🌐 Network optimization
- 💿 I/O scheduler tuning
- 🗄️ MySQL/MariaDB support
- 🐘 PostgreSQL support
- 💾 Automated backups
- 🔧 Table optimization
- 📊 Size analysis
- 📊 Daily system summaries
- 🔒 Security audit reports
- 🎯 Performance reports
- 👥 User activity reports
- 📧 Email integration
- 🐳 Docker support
- 🦭 Podman support
- 🧹 Resource cleanup
- 📊 Container statistics
- 🔄 Image updates
- 📊 Bandwidth monitoring
- 🔌 Connection statistics
- 🔍 Port scanning
- 🌐 DNS performance
- 📈 Interface statistics
- 🔑 Root password reset
- 💾 System restoration
- 🔧 Package repair
- 🗄️ RPM database rebuild
- 🌐 Network reset
╔═══════════════════════════════════════════════════════════════════════════════╗
║ SYSTEM CHECK UTILITY v2.0 ║
╚═══════════════════════════════════════════════════════════════════════════════╝
Current Time: 2024-01-15 10:30:45
MAIN MENU
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1) System Information
2) Hardware Information
3) Network Configuration
[...]
Select an option [0-15]:
▶ SYSTEM HEALTH SCORE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Overall System Health Score:
85/100 - GOOD
Issues Found:
● High disk usage on /var (87%)
● 2 failed services
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by System Administrators for System Administrators