Linux and Unix arch command

Quick links

About arch
Syntax
Examples
Related commands
Linux and Unix main page

About arch

Display the architecture of the current host.

Syntax

arch [-k | archname ]

-kDisplay the kernel architecture, such as sun4m, sun4c, and so forth. This defines which specific SunOS kernel will run on the machine, and has implications only for programs that depend on the kernel explicitly (for example, ps).
archnameUse archname to determine whether the application binaries for this application architecture can run on the current host system. The archname must be a valid application architecture, such as sun4, i86pc, and so forth.

Examples

arch

Display the architecture of the host currently connected to. For example, may display 'sun4' for a Sun Solaris box or more commonly will display 'x86_64' for the x86 64-bit architecture.

 Related commands

mach
ps
uname