uname

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2021 License: MIT-0 Imports: 3 Imported by: 0

Documentation

Overview

print operating system information.

SYNOPSIS

uname [-amnprsv]

DESCRIPTION

uname writes symbols representing one or more system characteristics to stdout.

The options are as follows:

-a        Behave as though all options were specified

-m        Print the machine hardware name

-n        Print the nodename (aka network name)

-r        Print the operating system release

-s        Print the operating system name

-v        Print the operating system version

If no options are specified, uname prints the operating system name as if '-s' had been specified.

SEE ALSO

WIP

REFERENCES

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/uname.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	All      bool // -a
	Machine  bool // -m
	Nodename bool // -n
	Release  bool // -r
	Sysname  bool // -s
	Version  bool // -v
}

func (*Options) Uname

func (opt *Options) Uname() error

type Opts

type Opts func(*Options)

func All

func All(all bool) Opts

func Machine

func Machine(machine bool) Opts

func Nodename

func Nodename(nodename bool) Opts

func Release

func Release(release bool) Opts

func Sysname

func Sysname(sysname bool) Opts

func Version

func Version(version bool) Opts

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL