System Information Skill
Gathers comprehensive system information about the Linux host.
Suggested Workflow
- Run
./scripts/sysinfo.shfor structured output covering OS, CPU, memory, and uptime. - Use individual commands below for specific details or when the script is unavailable.
Commands Reference
Operating System
cat /etc/os-release- Distribution name and versionuname -a- Kernel version and architecturehostnamectl- Hostname and OS info (systemd systems)
CPU Information
lscpu- CPU architecture details (cores, threads, model)cat /proc/cpuinfo | head -30- Detailed processor infonproc- Number of available processors
Memory Information
free -h- Memory and swap usage (human-readable)cat /proc/meminfo | head -10- Detailed memory statistics
System Uptime
uptime- How long the system has been runningcat /proc/loadavg- Load averages
Tips
- The
sysinfo.shscript outputs structured text (distribution, kernel, CPU model, cores, memory, uptime) suitable for parsing - Use
lscpufor the most readable CPU information - Memory values in
/proc/meminfoare in kilobytes