arch [-k | archname]
The arch utility displays the application architecture of the current host system. Due to extensive historical use of this command without any options, all SunOS 5.x SPARC based systems will return "sun4" as their application architecture. Use of this command is discouraged. See NOTES section below.
Systems can be broadly classified by their architectures, which define what executables will run on which machines. A distinction can be made between kernel architecture and application architecture (or, commonly, just "architecture"). Machines that run different kernels due to underlying hardware differences may be able to run the same application programs.
The following operand is supported:
If application binaries for archname can run on the current host system, TRUE (0) is returned. Otherwise, FALSE (1) is returned.
The following exit values are returned:
This command is provided for compatibility with previous releases and its use is discouraged. Instead, the uname command is recommended. See uname(1) for usage information.
|October 21, 2002||OmniOS|