← 返回
开发者工具 中文

x-uname

Enhanced `uname` command with colorized, structured output. Shows hostname, OS, kernel, architecture. **Dependency**: This is an x-cmd module. Install x-cmd...
增强的 `uname` 命令,支持彩色、结构化输出,显示主机名、操作系统、内核和架构。**依赖**:这是 x-cmd 模块,请安装 x-cmd...
edwinjhlee
开发者工具 clawhub v1.0.0 1 版本 99805.4 Key: 无需
★ 1
Stars
📥 493
下载
💾 7
安装
1
版本
#latest

概述

x uname - System Information

> Enhanced uname command with colorized, structured output.


Quick Start

# Display system information
x uname

Features

  • Colorized output: Key-value format with ANSI colors (auto-disabled when piped)
  • Structured display: hostname, osname, kernel, machine, version
  • Cross-platform: Works on Linux, macOS, Windows (via cosmo)

Output Fields

FieldDescriptionExample
-----------------------------
hostnameSystem hostnamemyserver
osnameOperating system nameLinux, Darwin
kernelKernel version5.15.0-91-generic
machineHardware architecturex86_64, arm64
versionFull OS version string#101-Ubuntu SMP...

Examples

Basic Usage

# Default - colorful structured output
x uname

# Output example:
# hostname   :  myserver
# osname     :  Linux
# kernel     :  5.15.0-91-generic
# machine    :  x86_64
# version    :  #101-Ubuntu SMP Tue Nov 14 13:29:11 UTC 2023

Pipe Usage

Colors are automatically disabled when output is piped:

# No colors in piped output
x uname | cat

# Parse with awk
x uname | awk -F': ' '/kernel/{print $2}'

Comparison with Native uname

CommandOutput Style
-----------------------
uname -aSingle line, space-separated
x unameMulti-line, key-value format
# Native uname
$ uname -a
Linux myserver 5.15.0-91-generic #101-Ubuntu SMP ... x86_64 x86_64 x86_64 GNU/Linux

# x uname
$ x uname
hostname   :  myserver
osname     :  Linux
kernel     :  5.15.0-91-generic
machine    :  x86_64
version    :  #101-Ubuntu SMP Tue Nov 14 13:29:11 UTC 2023

Related

  • Native uname(1) manual page

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 03:59 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,215
security-compliance

x-osv

edwinjhlee
Google OSV 数据库的命令行工具。查询软件包漏洞,扫描本地项目的依赖漏洞。**依赖**:这是 x-cmd 模块。
★ 1 📥 602
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,807