首页/ AI 技能 / @skilllib/skill-2014279412189966337
Skill站外收录 @skilllib/skill-2014279412189966337

system-info

获取 Linux 主机的完整系统状态,涵盖操作系统发行版与内核版本、CPU 架构及核心数量、内存容量与实时使用情况、系统运行时长及负载均值等关键指标,适用于环境诊断与资源评估场景。

0.0 (0) 182 次安装 原作者 编程导航
收录于 2026-01-22
效率工具 AI 技能

Skills.MD

# System Information Skill Use this skill to gather comprehensive system information about the Linux host. ## Quick Start Run the included script for a complete system overview: ```bash ./scripts/sysinfo.sh ``` ## Manual Commands ### Operating System - `cat /etc/os-release` - Distribution name and version - `uname -a` - Kernel version and architecture - `hostnamectl` - Hostname and OS info (systemd systems) ### CPU Information - `lscpu` - CPU architecture details (cores, threads, model) - `cat /proc/cpuinfo | head -30` - Detailed processor info - `nproc` - 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 running - `cat /proc/loadavg` - Load averages ## Tips - The `sysinfo.sh` script provides structured output suitable for parsing - Use `lscpu` for the most readable CPU information - Memory values in `/proc/meminfo` are in kilobytes

评论 0

还没有评论,来抢沙发。