系统基础信息查询模块 (System Basic Information Query Module)
Include: https://github.com/oneclickvirt/gostun
- 以
-l
指定输出的语言类型,可指定zh
或en
,默认不指定时使用中文输出 - 使用
sysctl
获取CPU信息,特化适配freebsd、openbsd系统 - 适配
MacOS
与Windows
系统的信息查询 - 检测GPU相关信息,参考ghw
- 支持自动切换为离线模式仅检测系统基础信息,不再检测网络信息
下载及安装
curl https://raw.githubusercontent.com/oneclickvirt/basics/main/basics_install.sh -sSf | bash
或
curl https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt/basics/main/basics_install.sh -sSf | bash
使用
basics
或
./basics
进行测试
无环境依赖,理论上适配所有系统和主流架构,更多架构请查看 https://github.com/oneclickvirt/basics/releases/tag/output
Usage: basics [options]
-log Enable logging
-h Show help information
-l string
Set language (en or zh)
-v Show version
rm -rf /root/basics
rm -rf /usr/bin/basics
go get github.com/oneclickvirt/basics@v0.0.15-20250714163009