This repository contains a Bash script that generates a comprehensive and beautifully formatted HTML system information report.
The script runs on both Linux (Ubuntu) and macOS with two variant versions available. It gathers real-time system data like uptime, disk usage, and user home directory space usage, and outputs them in a styled HTML page for easy viewing in any browser.
- π Generates a clean, readable HTML report with system details
- π Displays system uptime using the
uptimecommand - πΎ Shows disk space usage using
df -h - π Reports home directory usage:
- For root users: Shows space used by all users in
/home/ - For regular users: Shows only their own home usage
- For root users: Shows space used by all users in
- π§ Interactive mode support (asks before overwriting files)
- π Supports custom output filename using
-fflag - π Opens the generated HTML file automatically in the default browser
- β Works on both macOS and Ubuntu Linux
- π Stylish HTML output with CSS for improved readability
The output HTML page includes:
- Title:
System Information Report For <hostname> - Timestamp: Date, time, and user who generated the report
- System Uptime section
- Disk Space Utilization section
- Home Space Utilization section
