MACHTYPE(1) — Unix Programmer’s Manual
NAME
machtype − print a synopsis of the hardware and software
SYNOPSIS
machtype [ arg [ TRUE / FALSE ] ]
DESCRIPTION
machtype prints a summary of your computer’s hardware and software configurations. Using string comparisons, machtype determines
• the CPU speed
• the CPU type
• the coprocessor type, if any
• the bus type
• whether or not the system supports graphics
• whether or not the system is a cluster
• whether or not the system is a diskless node
• whether or not the system supports TRFS
• whether or not the system supports NFS
• whether or not the system supports System V UNIX
Without arguments, machtype prints all this information on the standard output. (See the example below.)
With an element of the system as an argument (for example, machtype NFS), machtype reports the configuration of only that element.
You can verify the configuration of any element by typing on the command line:
machtype arg value
In the example below, the user verified that the system CPU was a 68020 by typing machtype CPU 68020. When the value of an argument is true or false, as with the TRFS, NFS, and System V arguments, machtype tells whether the value you’ve typed is true or false. If your system does not support NFS, and you typed
machtype NFS FALSE
machtype responds with
TRUE
because it is true that your system does not support NFS.
NOTE: Be sure to capitalize all the variables and values you type on the command line to machtype. machtype recognizes FALSE, but not false, and TRUE, but not true.
/etc/rc.local runs machtype to configure the system at boot time.
EXAMPLE
%1 machtype
SPEED16.67
CPU68020
COPROCESSORNONE
BUS VMEBUS
GRAPHICS TRUE
CLUSTERFALSE
DISKLESSFALSE
TRFSTRUE
NFSFALSE
SYSVFALSE
%2 machtype CPU
68020
%3 machtype CPU 68020
TRUE
%4 machtype CPU 68010
FALSE
In the example above, the user typed machtype without options at a C shell prompt (%1), and machtype printed its summary of the system configuration. When the user specified the argument CPU at the second C shell prompt, machtype printed just the CPU type of the system and nothing more. At the third C shell prompt, the user asked whether the system CPU was a 68020, and machtype replied TRUE. When the user asked machtype whether the CPU were a 68010, machtype replied FALSE, because the CPU is a 68020, not a 68010.
FILES
/bin/machtype
SEE ALSO
INTEGRATED SOLUTIONS 4.3 BSD — September 28, 1988