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