2025-03-30 20:55:28 +08:00
2025-03-29 07:49:44 +00:00
2024-11-08 20:41:10 +08:00
2025-03-29 11:48:04 +00:00
2025-03-30 12:48:35 +00:00
2025-03-30 04:52:49 +00:00
2025-03-29 11:44:08 +00:00
2025-03-29 11:44:08 +00:00
2024-05-04 10:37:35 +08:00
2025-03-30 20:55:28 +08:00

basics

Hits

Build and Release

系统基础信息查询模块 (System Basic Information Query Module)

Include: https://github.com/oneclickvirt/gostun

说明

  • -l指定输出的语言类型,可指定zhen,默认不指定时使用中文输出
  • 使用sysctl获取CPU信息-特化适配freebsd、openbsd系统
  • 适配MacOSWindows系统的信息查询
  • 部分Windows10系统下打勾打叉编码错误显示已判断是Win时使用Y/N显示而不是勾叉
  • 检测GPU相关信息参考ghw

TODO

  • 目前IPV4的CIDR已加入识别IPV6的CIDR待处理加入识别
  • 适配MACOS系统的识别

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@latest
Description
系统基础信息查询模块 (System Basic Information Query Module)
Readme Apache-2.0 685 KiB
Languages
Go 95%
C 2.9%
Shell 2.1%