util-linux/sys-utils/arch.1

35 lines
1.1 KiB
Groff
Raw Normal View History

2006-12-06 17:25:32 -06:00
.\" arch.1 --
.\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
.\" Public domain: may be freely distributed.
.TH ARCH 1 "4 July 1997" "Linux 2.0" "Linux Programmer's Manual"
2006-12-06 17:25:32 -06:00
.SH NAME
arch \- print machine architecture
.SH SYNOPSIS
.B arch
.SH DESCRIPTION
.B arch
is equivalent to
2006-12-06 17:25:35 -06:00
.BR "uname -m" .
2006-12-06 17:25:32 -06:00
On current Linux systems,
.B arch
2006-12-06 17:25:35 -06:00
prints things such as "i386", "i486", "i586", "alpha", "sparc",
"arm", "m68k", "mips", "ppc".
2006-12-06 17:25:32 -06:00
.SH SEE ALSO
2006-12-06 17:25:39 -06:00
.BR uname (1),
.BR uname (2)
2006-12-06 17:25:35 -06:00
.\"
.\" Details:
.\" arch prints the machine part of the system_utsname struct
.\" This struct is defined in version.c, and this field is
.\" initialized with UTS_MACHINE, which is defined as $ARCH
.\" in the main Makefile.
.\" That gives the possibilities
.\" alpha arm i386 m68k mips ppc sparc sparc64
.\"
.\" If Makefile is not edited, ARCH is guessed by
.\" ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/)
.\" Then how come we get these i586 values?
.\" Well, the routine check_bugs() does system_utsname.machine[1] = '0' + x86;
.\" (called in init/main.c, defined in ./include/asm-i386/bugs.h)