arch - display system machine type
arch [ -k ]
-k
arch displays the current system architecture type. It tends to be equivilent to uname -m (except on SunOS platforms, see NOTES).
uname -m
-k Displays kernel architecture on SunOS platforms.
SunOS tends to differentiate between kernel and system architecture. uname -m will return kernel architecture. System architecture is the same information except it doesn't include the trailing alpha chars. I.e.: 'sun4m' (kernel) = 'sun4' (system), 'sun3x' = 'sun3', etc, etc.
Perl version rewritten for the Perl Power Tools project from the description of the arch program in OpenBSD.
Theo Van Dinter (felicity@kluge.net)
uname(1) uname(2) machine(1)
To install PerlPowerTools, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PerlPowerTools
CPAN shell
perl -MCPAN -e shell install PerlPowerTools
For more information on module installation, please visit the detailed CPAN module installation guide.