BashbeginnerdevopsAI generated

System Resource Snapshot Reporter

A script that gathers CPU, memory, disk, and process information at a point in time and formats it into a readable plain-text or HTML report. Learners practice parsing /proc and command output (top, df, free) and formatting text output in Bash.

Estimate
~7h
Steps
5
Completed by
0
Proposed by
codeseed.app

/proc filesystem · awk · df · free

Project roadmap

  1. 01

    Collect CPU and memory stats

    ~1.5h

    Parse /proc/stat and /proc/meminfo (or use free) to compute current CPU load and memory usage percentages.

  2. 02

    Collect disk usage stats

    ~1h

    Run df -h and parse its output with awk to list mount points over a configurable usage threshold.

  3. 03

    Collect top processes

    ~1h

    Use ps or top in batch mode to list the top 5 CPU and memory consuming processes.

  4. 04

    Format a readable report

    ~1.5h

    Combine all sections into a formatted plain-text report with headers and aligned columns.

  5. 05

    Add an HTML output mode

    ~2h

    Add a --html flag that renders the same data as a simple styled HTML file that can be opened in a browser.

Ready to build this?

Get a GitHub repo and start building. Your AI reviewer checks each step as you go.

~7h · 5 steps

Tech stack

/proc filesystemawkdffree