Sysops toolkit for scanning, monitoring, reporting, and maintaining system configurations. Track changes, create backups, run benchmarks, and keep your environment healthy — all from the command line.
| Command | Description |
|---|---|
| --------- | ------------- |
dotfiles scan | Scan and log a system configuration entry |
dotfiles monitor | Record a monitoring observation |
dotfiles report | Log a report entry for review |
dotfiles alert | Create an alert record |
dotfiles top | Record top-level metrics or priorities |
dotfiles usage | Log resource usage data |
dotfiles check | Run a check and record results |
dotfiles fix | Log a fix or remediation action |
dotfiles cleanup | Record a cleanup operation |
dotfiles backup | Log a backup event |
dotfiles restore | Log a restore operation |
dotfiles log | Add a general log entry |
dotfiles benchmark | Record benchmark results |
dotfiles compare | Log a comparison between configurations |
dotfiles stats | Show summary statistics across all logs |
dotfiles export | Export all data (json, csv, or txt) |
dotfiles search | Search across all log files for a term |
dotfiles recent | Show the 20 most recent activity entries |
dotfiles status | Health check — version, disk usage, last activity |
dotfiles help | Show all available commands |
dotfiles version | Show current version |
Each command without arguments displays the most recent 20 entries from its log file.
All data is stored in ~/.local/share/dotfiles/:
scan.log, monitor.log, report.log, alert.log, top.log, usage.log, check.log, fix.log, cleanup.log, backup.log, restore.log, log.log, benchmark.log, compare.loghistory.log (unified timeline of all actions)export.json, export.csv, or export.txt (generated on demand)Data format: each entry is stored as YYYY-MM-DD HH:MM|, pipe-delimited for easy parsing.
set -euo pipefaildate, wc, du, head, tail, grep, cut, basename)alert, fix, and log to maintain a structured timeline during outages or issues# Scan a configuration and log the result
dotfiles scan "nginx.conf updated to v1.25"
# Record a monitoring observation
dotfiles monitor "CPU at 78% during peak hours"
# Create an alert for high memory usage
dotfiles alert "Memory usage exceeded 90% threshold"
# Log a fix action after resolving an issue
dotfiles fix "Rotated /var/log/syslog, freed 2.3GB"
# Export all collected data as JSON for analysis
dotfiles export json
# Search all logs for entries related to nginx
dotfiles search nginx
# View recent activity across all commands
dotfiles recent
# Check overall health and disk usage
dotfiles status
# Show summary statistics
dotfiles stats
All command output goes to stdout. Redirect to a file if needed:
dotfiles stats > report.txt
dotfiles export json
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
共 2 个版本