[ale] Procinfo

Michael B. Trausch mike at trausch.us
Sat Feb 12 15:22:55 EST 2011


On Sat, 2011-02-12 at 14:55 -0500, scott mcbrien wrote:
> procinfo collects some data in /proc and displays it to stdout.  What
> about looking at /proc/cpuinfo or uname -p? 

uname -a will work.

uname -p has never been implemented in GNU coreutils.  Only a small
handful of distributions have implemented -p based on patches from the
Gentoo project, if memory serves.  Debian and Ubuntu are not in that
list.

That said, if uname -p did work as advertised, it wouldn't help much.
uname -a (for architecture) will identify the architecture of the
presently running system; it'll report iX86 (replace X with 3, 4, 5, or
6) or x86_64 depending on what's really running.

Possibly also noteworthy: uname -a can be fooled by programs that play
with "personalities" on Linux.  QEMU's foreign architecture linux-binary
executor (not the full-blown emulator itself) and linux32 both employ
such trickery when running binaries not quite intended to be run on the
system they're being run on.

	--- Mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://mail.ale.org/pipermail/ale/attachments/20110212/bb9bdc76/attachment.bin 


More information about the Ale mailing list