返回顶部
C

Computer计算机技能

The universal computer skill - hardware diagnostics, system performance, computational tasks, binary operations, and everything about the physical machine. Use for computer management, optimization, troubleshooting, and understanding the machine itself.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
439
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

Computer

Computer(计算机总控)

这是 Computer Skill - 一个统管计算机一切操作的终极技能。它不只是工具集合,更是数字世界的物理根基



核心理念

计算机是执行逻辑与算术操作的机器。
Computer Skill 让你与这台机器深度对话。

它覆盖:

  • - 硬件 - CPU、内存、磁盘、网络、外设
  • 固件 - BIOS/UEFI、引导、ACPI
  • 系统 - 进程、服务、内核、驱动
  • 性能 - 监控、优化、调优、故障排除
  • 计算 - 数学、数据处理、模拟
  • 二进制 - 0/1世界、内存布局、编码



适用场景

当你说:

  • - 检查计算机健康状态
  • 优化系统性能
  • 诊断硬件问题
  • 计算复杂数学
  • 查看内存使用
  • 测试磁盘速度
  • 监控温度
  • 超频/降频
  • 管理系统资源
  • 了解二进制/十六进制
  • 硬件信息查询



硬件信息与诊断

整机信息

bash

系统摘要

computer summary # 全面系统报告 computer hardware --full # 详细硬件清单 computer specs # 快速规格查看

等效命令

sudo dmidecode --type system # DMI表信息(Linux) system_profiler SPHardwareDataType # macOS硬件报告 wmic computersystem get name,domain,manufacturer,model # Windows

CPU信息

bash computer cpu # CPU详细信息 lscpu # 逻辑核心、架构、缓存 cat /proc/cpuinfo # 原始CPU信息(Linux) sysctl -a | grep machdep.cpu # macOS CPU详情 Get-WmiObject Win32_Processor # Windows

核心信息
bash
nproc # 逻辑核心数
lscpu | grep Core(s) per socket # 每核核心
lscpu | grep CPU max MHz # 最高频率
cpupower frequency-info # 当前频率(Linux)

内存信息

bash computer memory # 内存总览 free -h # 使用情况 vmstat -s # 虚拟内存统计 cat /proc/meminfo # 原始内存信息

详细RAM
bash
sudo dmidecode --type memory # 内存模块详情
sudo lshw -C memory # 硬件层信息
memtester 1M # 内存测试(需安装)

磁盘与存储

bash computer disk # 磁盘总览 lsblk # 块设备树 fdisk -l # 分区表 blkid # 文件系统识别 df -h # 磁盘空间 du -sh * # 目录大小

SMART健康
bash
smartctl -a /dev/sda # 完整SMART数据
smartctl -H /dev/sda # 健康状态
smartctl -t short /dev/sda # 快速自检
smartctl -l selftest /dev/sda # 自检结果

磁盘性能
bash

顺序读写


dd if=/dev/zero of=testfile bs=1M count=1000 oflag=direct
dd if=testfile of=/dev/null bs=1M count=1000 iflag=direct

iozone (综合测试)

iozone -a -g 1G -i 0 -i 1

fio (灵活测试)

fio --name=randread --filename=test --rw=randread --bs=4k --iodepth=64 --size=1G --numjobs=4 --runtime=60 --group_reporting

GPU与显示

bash computer gpu # GPU信息 lspci | grep VGA # PCI设备 nvidia-smi # NVIDIA GPU状态 glxinfo | grep OpenGL # OpenGL信息(Linux) system_profiler SPDisplaysDataType # macOS显示 Get-WmiObject Win32_VideoController # Windows

网络接口

bash computer network # 网络总览 ip addr show # IP地址 ethtool eth0 # 网卡详情(速度、双工) ethtool -i eth0 # 驱动信息 iwconfig # 无线信息(Linux) networksetup -getinfo Wi-Fi # macOS Wi-Fi Get-NetAdapter # Windows

网卡速度检测
bash
ethtool eth0 | grep Speed # 实际协商速度
iperf3 -c server # 带宽测试

温度与传感器

bash computer temp # 温度监控 sensors # LM-Sensors(Linux) sudo turbostat --all # Intel CPU功耗、温度 powermetrics --samplers smc # macOS传感器 coretemp # 核心温度

风扇速度
bash
sensors -u # 包括风扇
cat /proc/acpi/ibm/fan # ThinkPad风扇



系统性能监控

实时监控

bash computer monitor # 启动监控仪表板 top # 进程排名(CPU、内存) htop # 增强版top glances # 全系统仪表板(网络、磁盘、进程) atop # 高级系统监控(历史记录)

自定义监控

watch -n 1 ps aux --sort=-%cpu | head -10 # 每1秒查看CPU Top10 watch -n 1 free -h && df -h # 内存和磁盘

性能数据

bash

sar(系统活动报告,历史分析)

sar -u 1 10 # CPU每1秒10次 sar -r 1 10 # 内存 sar -b 1 10 # I/O

pidstat(进程级统计)

pidstat -u 1 10 # CPU使用 pidstat -r 1 10 # 内存使用

vmstat(虚拟内存统计)

vmstat 1 10 # 每秒输出

性能分析工具

bash perf top # 实时perf分析(内核函数) strace -p PID # 跟踪系统调用 ltrace -p PID # 跟踪库调用 tcpdump -i eth0 port 80 # 网络抓包 wireshark # 图形化抓包

计算功能

数学计算

bash computer calculate 123 * 456 # 基本运算 computer calc --mode float sin(pi/4) # 浮点数学 computer convert 0xFF # 十六进制转换 computer bit --and 0b1100 0b1010 # 位运算

bc计算器(精确)
bash
echo scale=10; sqrt(2) | bc -l
echo 2^32 | bc

Python一行计算
bash
python -c print(232-1)
python -c import math; print(math.sin(math.pi/4))

单位转换
bash

体积、长度、温度


computer units --from GB --to MB 1
computer convert --temp 100 C F

位运算

bash

Bash位运算(整数)

echo $((0b1100 & 0b1010)) # AND → 1000 (8) echo $((0b1100 | 0b1010)) # OR → 1110 (14) echo $((0b1100 ^ 0b1010)) # XOR → 0110 (6) echo $((0b1100 << 2)) # 左移 → 110000 (48) echo $((0b1100 >> 2)) # 右移 → 0011 (3)

反码

echo $((~0b1010)) # 负数表示(补码)

十六进制/二进制/八进制
bash
printf %x\n 255 # 十六进制 → ff
printf %o\n 255 # 八进制 → 377
printf %b\n \x48\x65\x78 # 二进制解码 → Hex
echo obase=16; 255 | bc # 十进制转十六进制
echo ibase=16; FF | bc # 十六进制转十进制

算法与模拟

bash

快速排序(演示)

computer algo --sort quick --array 5,2,8,1,9

斐波那契数列

fib() { a=0 b=1; for ((i=0;i<$1;i++)); do echo -n

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 computer-1776118664 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 computer-1776118664 技能

通过命令行安装

skillhub install computer-1776118664

下载

⬇ 下载 Computer v1.0.0(免费)

文件大小: 7.84 KB | 发布时间: 2026-4-15 12:17

v1.0.0 最新 2026-4-15 12:17
Computer Skill v1.0.0 – Initial Release

- Introduces a comprehensive skill for computer hardware diagnostics, system performance, computational tasks, binary operations, and physical machine troubleshooting.
- Covers key topics: hardware, firmware, operating systems, performance monitoring, optimization, and binary/math operations.
- Provides practical command examples for Linux, macOS, and Windows.
- Supports use cases such as system health checks, performance optimization, hardware diagnostics, resource management, and binary understanding.
- Includes diagnostic guides, system management, performance analysis, and troubleshooting tools for a wide range of computing environments.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部