1arch(1) User Commands arch(1)
2
3
4
6 arch - display the architecture of the current host
7
9 arch [-k | archname]
10
11
13 The arch utility displays the application architecture of the current
14 host system. Due to extensive historical use of this command without
15 any options, all SunOS 5.x SPARC based systems will return "sun4" as
16 their application architecture. Use of this command is discouraged. See
17 NOTES section below.
18
19
20 Systems can be broadly classified by their architectures, which define
21 what executables will run on which machines. A distinction can be made
22 between kernel architecture and application architecture (or, commonly,
23 just "architecture"). Machines that run different kernels due to under‐
24 lying hardware differences may be able to run the same application pro‐
25 grams.
26
28 -k Displays the kernel architecture, such as sun4u. This defines
29 which specific SunOS kernel will run on the machine, and has
30 implications only for programs that depend on the kernel explic‐
31 itly (for example, ps(1)).
32
33
35 The following operand is supported:
36
37 archname Use archname to determine whether the application binaries
38 for this application architecture can run on the current
39 host system. The archname must be a valid application
40 architecture, such as sun4, i86pc, and so forth.
41
42 If application binaries for archname can run on the current
43 host system, TRUE (0) is returned. Otherwise, FALSE (1) is
44 returned.
45
46
48 The following exit values are returned:
49
50 0 Successful completion.
51
52
53 >0 An error occurred.
54
55
57 See attributes(5) for descriptions of the following attributes:
58
59
60
61
62 ┌─────────────────────────────┬─────────────────────────────┐
63 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
64 ├─────────────────────────────┼─────────────────────────────┤
65 │Availability │SUNWcsu │
66 └─────────────────────────────┴─────────────────────────────┘
67
69 mach(1), ps(1), uname(1), attributes(5)
70
72 This command is provided for compatibility with previous releases and
73 its use is discouraged. Instead, the uname command is recommended. See
74 uname(1) for usage information.
75
76
77
78SunOS 5.11 21 Oct 2002 arch(1)