FDeghy/Linux-Optimizer ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple interactive Bash tool for optimizing a Linux server from the terminal.
I want it to work on common server distros like Ubuntu, Debian, CentOS, AlmaLinux, and Fedora, and it should be aimed at VPS and bare metal machines, not desktops. The script should walk me through a menu and let me apply things like system updates, cleanup, basic server tweaks, swap file creation, IPv6 support, timezone setup, and common security and performance settings.
Please also include optional extras like fixing hosts and DNS temporarily, installing a performance kernel on supported systems, tightening SSH settings, tuning sysctl and user limits, and configuring UFW to open common ports like SSH, 80, and 443. Make sure it backs up any config files it changes before editing them.
If anything depends on the distro or kernel support, handle that cleanly and warn me before making risky changes. A reboot prompt at the end would be great.
Are you gonna build this?
make sure you review the code using coderabbit