machid — Get Processor Type Truth Value

Synopsis

/usr/bin/sun 
/usr/bin/iAPX286 
/usr/bin/i386 
/usr/bin/pdp11 
/usr/bin/sparc 
/usr/bin/u3b 
/usr/bin/u3b2 
/usr/bin/u3b5 
/usr/bin/u3b15 
/usr/bin/vax 
/usr/bin/u370 

Description

Note

The machid family of commands is obsolete. Use uname -p and uname -m instead.

The following commands return a true value (exit code of 0) if you are using an instruction set that the command name indicates.

sun true if you are on a Sun system.
iAPX286 true if you are on a computer using an iAPX286 processor.
i386 true if you are on a computer using an iAPX386 processor.
pdp11 true if you are on a PDP-11/45 or PDP-11/70.
sparc true if you are on a computer using a SPARC family processor.
u3b true if you are on a 3B20 computer. ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.