logo

utils-std

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

uname.1 (1329B)


  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 December 07, 2024
  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 amnoprsv
  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 o
  26. (non-standard) Write operating system name.
  27. Currently aliased to
  28. .Fl s .
  29. .It Fl p
  30. (non-standard) Write processor type.
  31. Currently aliased to
  32. .Fl m .
  33. .It Fl r
  34. Write running operating system release.
  35. .It Fl s
  36. Write running operating system name.
  37. .It Fl v
  38. Write version level of running operating system release.
  39. .El
  40. .Pp
  41. If no options are specified,
  42. .Nm
  43. prints the operating system as if
  44. .Fl s
  45. was specified.
  46. .Sh EXIT STATUS
  47. .Ex -std
  48. .Sh STANDARDS
  49. .Nm
  50. should be compliant with the
  51. IEEE Std 1003.1-2024 (“POSIX.1”)
  52. specification.
  53. .Pp
  54. The
  55. .Fl o
  56. and
  57. .Fl p
  58. options are extensions.
  59. .Sh AUTHORS
  60. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me