OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / util-linux / original / man1 / arch.1
1 .\" arch.1 -- 
2 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
3 .\" Public domain: may be freely distributed.
4 .TH ARCH 1 "4 July 1997" "Linux 2.0" "Linux Programmer's Manual"
5 .SH NAME
6 arch \- print machine architecture
7 .SH SYNOPSIS
8 .B arch
9 .SH DESCRIPTION
10 .B arch
11 is equivalent to
12 .BR "uname -m" .
13
14 On current Linux systems,
15 .B arch
16 prints things such as "i386", "i486", "i586", "alpha", "sparc",
17 "arm", "m68k", "mips", "ppc".
18 .SH SEE ALSO
19 .BR uname (1),
20 .BR uname (2)
21 .\"
22 .\" Details:
23 .\" arch prints the machine part of the system_utsname struct
24 .\" This struct is defined in version.c, and this field is
25 .\" initialized with UTS_MACHINE, which is defined as $ARCH
26 .\" in the main Makefile.
27 .\" That gives the possibilities 
28 .\" alpha    arm      i386     m68k     mips     ppc      sparc    sparc64
29 .\"
30 .\" If Makefile is not edited, ARCH is guessed by
31 .\" ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/)
32 .\" Then how come we get these i586 values?
33 .\" Well, the routine check_bugs() does system_utsname.machine[1] = '0' + x86;
34 .\" (called in init/main.c, defined in ./include/asm-i386/bugs.h)