[ale] Procinfo

Brian Pitts brian at polibyte.com
Sun Feb 13 18:55:49 EST 2011


On 02/12/2011 03:22 PM, Michael B. Trausch wrote:
> 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

Hmm, I have '-a for all' in coreutils 8.5.

       -a, --all
              print  all  information,  in the following order, except
omit -p and -i if unknown:

       -s, --kernel-name
              print the kernel name

       -n, --nodename
              print the network node hostname

       -r, --kernel-release
              print the kernel release

       -v, --kernel-version
              print the kernel version

       -m, --machine
              print the machine hardware name

       -p, --processor
              print the processor type or "unknown"

       -i, --hardware-platform
              print the hardware platform or "unknown"

       -o, --operating-system
              print the operating system

       --help display this help and exit

       --version
              output version information and exit

In Fedora 14

$ uname -p
x86_64
$ uname -i
x86_64
$ uname -m
x86_64

In Ubuntu 10.10

$ uname -p
unknown
$ uname -i
unknown
$ uname -m
x86_64

-- 
All the best,
Brian Pitts


More information about the Ale mailing list