How do I figure out a computer's architecture from the command line?

command-line, cpu-architecture, unix

Solution

`uname -a`

Problem

Is there a standard program I can use to find out whether I'm on an i386 or x86, 32-bit or 64-bit machine? I'm on a Unix box.

Original source