Skip to content

aalokitbh/System_Info_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

System_Info_Generator

πŸ–₯️ System Information Page Generator (Shell Script)

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.


πŸ“Œ Features

  • πŸ“„ Generates a clean, readable HTML report with system details
  • πŸ•’ Displays system uptime using the uptime command
  • πŸ’Ύ 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
  • 🧠 Interactive mode support (asks before overwriting files)
  • πŸ“ Supports custom output filename using -f flag
  • πŸš€ 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

πŸ§ͺ Sample Output

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

Project Screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published