Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

arch(1)

mach(1)

make(1)

sh(1)

test(1V)

true(1)

MACHID(1)  —  USER COMMANDS

NAME

machid, sun, iAPX286, m68k, pdp11, u3b, u3b2, u3b5, vax − provide truth value about your processor type

SYNOPSIS

sun

iAPX286

m68k

pdp11

u3b

u3b2

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. 

sun True if you are on a Sun. 

iAPX286
True if you are on a computer using an iAPX286 processor.

m68k True if you are on a computer using an MC68000-family processor. 

pdp11 True if you are on a PDP-11. 

u3b True if you are on a 3B 20S computer. 

u3b2 True if you are on a 3B 2 computer. 

u3b5 True if you are on a 3B 5 computer. 

vax True if you are on a VAX. 

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

arch(1), mach(1), make(1), sh(1), test(1V), true(1)

Sun Release 3.2  —  Last change: 6 June 1986

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026