Go to main content

man pages section 1: User Commands

Exit Print View

Updated: July 2017
 
 

machid(1)

Name

machid, sun, i386, i486, sparc - get processor type truth value

Synopsis

sun 
i386 
sparc 

Description

The following commands will 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.

i386

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

sparc

True if you are on a computer using a SPARC-family processor.

The commands that do not apply will return a false (non-zero) value. These commands are often used within makefiles (see make(1S)) and shell scripts (see sh(1)) to increase portability.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os

See Also

make(1S), sh(1), test(1), true(1), uname(1), attributes(5)

Notes

The machid family of commands is obsolete and could be deleted in a future release of Oracle Solaris. Use uname –p instead.