Skip to content
Worix
BrowsePublish
Log inSign Up

x-uname

Enhanced `uname` command with colorized, structured output. Shows hostname, OS, kernel, architecture. **Dependency**: This is an x-cmd module. Install x-cmd...

25 downloads
Free
Reviewed

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

Download

ZIP package — ready to use

Skill Info

Creator
edwinjhlee
Downloads
25
Published
Mar 15, 2026
Updated
Mar 16, 2026