Skip to content
Skillv1.0.0

x-uname

Enhanced `uname` command with colorized, structured output. Shows hostname, OS, kernel, architecture. **Dependency**: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation opt

by x-cmd(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from x-cmd/x-cmd (mod/uname/SKILL.md). Install upstream with npx skills add x-cmd/x-cmd --skill uname. Copyright stays with the author (Apache-2.0).

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

Field Description Example
hostname System hostname myserver
osname Operating system name Linux, Darwin
kernel Kernel version 5.15.0-91-generic
machine Hardware architecture x86_64, arm64
version Full 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

Command Output Style
uname -a Single line, space-separated
x uname Multi-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

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/x-cmd-x-cmd-uname/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

x-cmd-x-cmd-uname.ocm.jsonjson
{
  "ocm": "1",
  "id": "x-cmd-x-cmd-uname",
  "kind": "skill",
  "name": "x-uname",
  "description": "Enhanced `uname` command with colorized, structured output. Shows hostname, OS, kernel, architecture. **Dependency**: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.",
  "publisher": "x-cmd",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "x-cmd",
      "system",
      "uname",
      "sysinfo",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Enhanced `uname` command with colorized, structured output. Shows hostname, OS, kernel, architecture. **Dependency**: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/x-cmd/x-cmd",
      "path": "mod/uname/SKILL.md",
      "ref": "e18c1ef8b4695c7556c4e847b2eb7eaac13b9230",
      "url": "https://github.com/x-cmd/x-cmd/blob/e18c1ef8b4695c7556c4e847b2eb7eaac13b9230/mod/uname/SKILL.md",
      "key": "x-cmd/x-cmd/mod/uname/SKILL.md"
    },
    "compatibility": "POSIX Shell",
    "license": "Apache-2.0"
  },
  "instructions": "# x uname - System Information\n\n> Enhanced `uname` command with colorized, structured output.\n\n---\n\n## Quick Start\n\n```bash\n# Display system information\nx uname\n```\n\n---\n\n## Features\n\n- **Colorized output**: Key-value format with ANSI colors (auto-disabled when piped)\n- **Structured display**: hostname, osname, kernel, machine, version\n- **Cross-platform**: Works on Linux, macOS, Windows (via cosmo)\n\n---\n\n## Output Fields\n\n| Field | Description | Example |\n|-------|-------------|---------|\n| `hostname` | System hostname | `myserver` |\n| `osname` | Operating system name | `Linux`, `Darwin` |\n| ",
  "cost": {
    "context_tokens": 442
  }
}

Fetch it by URL: GET /api/v1/registry/x-cmd-x-cmd-uname/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.