MACHID(1) — HP-UX
NAME
hp9000s200, hp9000s300, hp9000s500, hp9000s800, pdp11, u3b, u3b5, vax − provide truth value about your processor type
SYNOPSIS
hp9000s200
hp9000s300
hp9000s500
hp9000s800
pdp11
u3b
u3b5
vax
DESCRIPTION
The following commands will return a true value (exit code of 0) if you are on a processor that the command name indicates.
hp9000s200
True if you are on a Hewlett-Packard 9000 Series 200.
hp9000s300
True if you are on a Hewlett-Packard 9000 Series 300.
hp9000s500
True if you are on a Hewlett-Packard 9000 Series 500.
hp9000s800
True if you are on a Hewlett-Packard 9000 Series 800.
pdp11
True if you are on a PDP-11/45 or PDP-11/70.
u3b
True if you are on a 3B 20S computer.
u3b5
True if you are on a 3B 5 computer.
vax
True if you are on a VAX-11/750 or VAX-11/780.
The commands that do not apply will return a false (non-zero) value. These commands are often used within make(1) makefiles and shell procedures to increase portability.
SEE ALSO
make(1), sh(1), test(1), true(1).
Hewlett-Packard Company — Version B.1, May 11, 2021