system-info
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSystem Info Skill
系统信息Skill
Gather system information using standard command-line tools.
使用标准命令行工具收集系统信息。
Commands
命令
bash
undefinedbash
undefinedOS version
操作系统版本
sw_vers # macOS
uname -a # Any Unix
sw_vers # macOS系统
uname -a # 任意Unix系统
Disk usage
磁盘使用情况
df -h # All volumes
du -sh ~/Desktop ~/Documents ~/Downloads # Common folders
df -h # 所有卷
du -sh ~/Desktop ~/Documents ~/Downloads # 常用文件夹
Memory
内存
vm_stat # macOS memory stats
top -l 1 -s 0 | head -12 # Quick system overview
vm_stat # macOS内存统计
top -l 1 -s 0 | head -12 # 快速系统概览
CPU
CPU信息
sysctl -n machdep.cpu.brand_string # CPU model
sysctl -n hw.ncpu # CPU count
sysctl -n machdep.cpu.brand_string # CPU型号
sysctl -n hw.ncpu # CPU核心数
Running processes (top CPU/memory)
运行进程(CPU/内存占用Top)
ps aux --sort=-%cpu | head -10 # Top CPU
ps aux --sort=-%mem | head -10 # Top memory
ps aux --sort=-%cpu | head -10 # CPU占用Top
ps aux --sort=-%mem | head -10 # 内存占用Top
Network
网络信息
ifconfig | grep "inet " # IP addresses
networksetup -getairportnetwork en0 # WiFi network (macOS)
ping -c 1 8.8.8.8 # Connectivity check
ifconfig | grep "inet " # IP地址
networksetup -getairportnetwork en0 # WiFi网络(macOS)
ping -c 1 8.8.8.8 # 连通性检测
Battery (MacBook)
电池状态(MacBook)
pmset -g batt # Battery status
pmset -g batt # 电池状态
Uptime
系统运行时间
uptime
undefineduptime
undefinedTips
提示
- Use for macOS version details
sw_vers - Use for full hardware info
system_profiler SPHardwareDataType - Use to check what's running on a port
lsof -i :PORT
- 使用查看macOS版本详情
sw_vers - 使用查看完整硬件信息
system_profiler SPHardwareDataType - 使用检查指定端口上运行的程序
lsof -i :PORT