Files
claw/scripts/sysinfo@tx-ubuntu-ubuntu.sh
T
fukunee 1904288e9b Add README documentation and clean up project files
Remove unused example host file and Docker install script, rename
hello.sh to follow naming convention, and add comprehensive README with
project structure, commands, and usage examples
2026-05-13 14:48:25 +08:00

14 lines
356 B
Bash

#!/usr/bin/env bash
# 示例脚本 - 查看主机基本信息
echo "===== 主机信息 ====="
echo "主机名: $(hostname)"
echo "系统: $(cat /etc/os-release | grep PRETTY_NAME | cut -d= -f2 | tr -d '"')"
echo "内核: $(uname -r)"
echo "运行时间: $(uptime -p)"
echo ""
echo "===== 磁盘 ====="
df -h /
echo ""
echo "===== 内存 ====="
free -h