logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git

uname.1 (1228B)


  1. .\" utils-std: Collection of commonly available Unix tools
  2. .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. .\" SPDX-License-Identifier: MPL-2.0
  4. .Dd 2024-04-21
  5. .Dt UNAME 1
  6. .Os
  7. .Sh NAME
  8. .Nm uname
  9. .Nd return system name and information
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Op Fl amnrsv
  13. .Sh DESCRIPTION
  14. .Nm
  15. prints the operating system name, and optionally more information about the system to standard output, separated by spaces.
  16. .Sh OPTIONS
  17. .Bl -tag -width __
  18. .It Fl a
  19. Enable all options, equivalent to passing
  20. .Fl mnrsv .
  21. .It Fl m
  22. Write machine name, also known as the processor architecture.
  23. .It Fl n
  24. Write network node name, also known as hostname.
  25. .It Fl p
  26. (non-standard) Write processor type. Currently aliased to
  27. .Fl m .
  28. .It Fl r
  29. Write running operating system release.
  30. .It Fl s
  31. Write running operating system name.
  32. .It Fl v
  33. Write version level of running operating system release.
  34. .El
  35. .Pp
  36. If no options are specified,
  37. .Nm
  38. prints the operating system as if
  39. .Fl s
  40. was specified.
  41. .Sh EXIT STATUS
  42. .Ex -std
  43. .Sh STANDARDS
  44. .Nm
  45. should be compliant with the
  46. IEEE Std 1003.1-2024 (“POSIX.1”)
  47. specification.
  48. .Pp
  49. The
  50. .Fl p
  51. option is an extension.
  52. .Sh AUTHORS
  53. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me