-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmachtype.1
76 lines (76 loc) · 2.41 KB
/
machtype.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.\" -*- nroff -*- mode
.\" $Id: machtype.1,v 1.21 1999-01-22 23:11:34 ghudson Exp $
.TH MACHTYPE 1 "May 14 1996"
.SH NAME
machtype \- Print machine type to standard output
.SH SYNOPSIS
.B machtype
[-c] [-d] [-r] [-M] [-v] [-A] [-L] [-P] [-N] [-E] [-S] [-C] [-q]
.SH DESCRIPTION
.I Machtype
prints the CPU type to standard output. It prints "sun4" when run on a
Sun and "sgi" when run on an SGI.
.TP
.B -c
Print the specific cpu type (e.g. SPARC/5 or IP22).
.TP
.B -d
Print the types of display attached to the system (e.g. "cgthree").
.TP
.B -r
Print the types of any disk drives attached to the system, one to a
line, as in "SUN0535".
.TP
.B -M
Print the physical memory present, in kilobytes.
.TP
.B -v
Verbose output (suitable for humans to read, instead of computers).
.TP
.B -A
Print out the release that machtype was compiled under.
.TP
.B -P
Print out the version of the Athena system packs attached, from
.I /srvd/.rvdinfo
.TP
.B -L
Print out the version of Athena installed on the local system from
.I /etc/athena/version.
.TP
.B -N
Print out the name of the base operating system machtype was compiled
under; if used with the "-v" flag, the version number of the OS will
be included as well. Current values for the name of the base OS are
"SunOS" and "IRIX".
.TP
.B -E
Print out the version number of the base operating system machtype was
compiled under.
.TP
.B -S
Print out the "Athena System" name for the current architecture. This
value is normally stored in the environment variable ATHENA_SYS, and
ideally corresponds to the AFS system name for the same machine
assuming the machine were running AFS. This value is used in the Athena
environment as part of a scheme for laying out filesystems containing
binaries for multiple architectures. See \fIlockers\fR(7) for more
information.
.TP
.B -C
Print out a colon-separated list of "Athena System" names that are
compatible with the current architecture. This value is normally
stored in the environment variable ATHENA_SYS_COMPAT, and is used by
\fIathdir\fR(1) and \fIadd\fR(1) as a set of fallback values when a
locker doesn't have binaries for the actual Athena System name.
.TP
.B -q
Print out "quickstation" if the workstation is a quickstation and
"not_quickstation" if it is not.
.PP
.I Machtype
is useful for conditionalizing shell scripts, .login files, etc. in an
environment that contains filesystems shared across several different
architectures.
.SH SEE ALSO
csh(1), lockers(7)