Skip to content
Back to top
View this page
Edit this page

# xonsh.xoreutils.uname

Provides a cross-platform way to figure out the system uname.

This version of uname was written in Python for the xonsh project: http://xon.sh

Based on cat from GNU coreutils: http://www.gnu.org/software/coreutils/

xonsh.xoreutils.uname.main(args=None)

xonsh.xoreutils.uname.uname_fn(all=False, kernel_name=False, node_name=False, kernel_release=False, kernel_version=False, machine=False, processor=False, hardware_platform=False, operating_system=False)

  This version of uname was written in Python for the xonsh project: https://xon.sh

  Based on uname from GNU coreutils: http://www.gnu.org/software/coreutils/

  Parameters:
    all-a, –all

      print all information, in the following order, except omit -p and -i if unknown

    kernel_name-s, –kernel-name

      print the kernel name

    node_name-n, –nodename

      print the network node hostname

    kernel_release-r, –kernel-release

      print the kernel release

    kernel_version-v, –kernel-version

      print the kernel version

    machine-m, –machine

      print the machine hardware name

    processor-p, –processor

      print the processor type (non-portable)

    hardware_platform-i, –hardware-platform

      print the hardware platform (non-portable)

    operating_system-o, –operating-system

      print the operating system