| ARCH(1) | General Commands Manual | ARCH(1) |
arch, machine
— print architecture type
arch |
[-ks] |
machine |
[-a] |
The arch and
machine commands display the machine's architecture
in slightly different ways. arch by default displays
the application architecture, defined by both the operating system and the
instruction set architecture, while machine displays
the kernel architecture (without the operating system part). Note that both
commands output the target architecture as opposed to
uname(1) which describes the host.
This is useful for dynamic discovery of the target architecture in build or
configuration scripts needing to work in cross-compilation environments.
The options for arch are as follows:
-k-sThe options for machine are as
follows:
-a| July 6, 2017 | openbsd |