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