get_machine.1 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. .\"Made with Love
  2. .TH get_machine 1 "JULY 2019" Linux "User Manuals"
  3. .SH NAME
  4. get_machine - identify running hardware architecture
  5. .SH SYNOPSIS
  6. .na
  7. get_machine [ --exact --override OVERRIDE --os ]
  8. .SH DESCRIPTION
  9. get_machine exists to make simple shell scripts that need
  10. to know that hardware architecture it is assuming or what
  11. host operating system is being used.
  12. .br
  13. At its core is figure out the general hardware architecture
  14. and return it as quickly as possible. Although it is sometimes
  15. useful to return something different; which is why --override
  16. exists and thus what ever is supplied by with it is returned.
  17. Scripts that wish to expose that can leverage the environment
  18. variable GET_MACHINE_FLAGS to allow efficient overriding in
  19. their scripts. Or if they wish to only override what Operating
  20. system is running the environment variable GET_MACHINE_OS_FLAGS
  21. should be used.
  22. .br
  23. If one wishes for something more exact than x86 or amd64, the
  24. option --exact will return more specific values like i686-pae.
  25. .br
  26. Should one desire to know the host operating system: --os
  27. .br
  28. A word of warning; --override always will take top precedence
  29. and can return anything you desire.
  30. .SH EXAMPLES
  31. Typically, get_machine will be in scripts used in bootstrapping
  32. .br
  33. # get_machine
  34. .br
  35. # get_machine --override "I am the very model of a modern major general"
  36. .br
  37. # get_machine ${GET_MACHINE_FLAGS}
  38. .br
  39. # get_machine ${GET_MACHINE_OS_FLAGS} --os
  40. .br
  41. .SH COMPATIBILITY
  42. get_machine is compatible with all Turing complete machines;
  43. even the ones that try to be Turing complete -1
  44. .SH AUTHORS
  45. Jeremiah Orians <Jeremiah@pdp10.guru>
  46. .SH COPYRIGHT
  47. Copyright 2016-2021 Jeremiah Orians <Jeremiah@pdp10.guru>
  48. .br
  49. License GPLv3+.
  50. .SH "SEE ALSO"
  51. M1(1), hex2(1), blood-elf(1), kaem(1), syscalls(2)