https://github.com/oneclickvirt/basics
系统基础信息查询模块 (System Basic Information Query Module)
https://github.com/oneclickvirt/basics
goecs system
Last synced: 11 months ago
JSON representation
系统基础信息查询模块 (System Basic Information Query Module)
- Host: GitHub
- URL: https://github.com/oneclickvirt/basics
- Owner: oneclickvirt
- License: apache-2.0
- Created: 2024-05-04T02:37:35.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-10T07:42:53.000Z (11 months ago)
- Last Synced: 2025-07-10T11:48:03.266Z (11 months ago)
- Topics: goecs, system
- Language: Go
- Homepage: https://github.com/oneclickvirt/ecs
- Size: 267 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# basics
[](https://hits.spiritlhl.net)
[](https://github.com/oneclickvirt/basics/actions/workflows/main.yaml)
系统基础信息查询模块 (System Basic Information Query Module)
Include: https://github.com/oneclickvirt/gostun
## 说明
- [x] 以```-l```指定输出的语言类型,可指定```zh```或```en```,默认不指定时使用中文输出
- [x] 使用```sysctl```获取CPU信息,特化适配freebsd、openbsd系统
- [x] 适配```MacOS```与```Windows```系统的信息查询
- [x] 检测GPU相关信息,参考[ghw](https://github.com/jaypipes/ghw)
- [x] 支持自动切换为离线模式仅检测系统基础信息,不再检测网络信息
## Usage
下载及安装
```
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
```
## 在Golang中使用
```
go get github.com/oneclickvirt/basics@v0.0.14-20250710074251
```
## 结果展示

