How do I display the operating system version, and processor architecture in the command prompt?

it depends on what system - try to type help in the prompt, and then you will get a list of possible commands for your particular version of OS

The OS info is shown at the top of the CMD prompt window when you open it.

Processor information is available from the command in the c:\ line below and shows the caption info below it.


C:\>wmic cpu get caption
Caption
x86 Family 6 Model 37 Stepping 2
x86 Family 6 Model 37 Stepping 2
x86 Family 6 Model 37 Stepping 2
x86 Family 6 Model 37 Stepping 2

C:\>

This output, in example, shows 4 processors of x86 architecture.

Process information is available using system environment variables. The environment variables related to CPU are listed below.

PROCESSOR_ARCHITECTURE
PROCESSOR_IDENTIFIER
PROCESSOR_LEVEL
PROCESSOR_REVISION

The values of these environment variables can be retrieved using echo command.

Ex:

C:\>echo %PROCESSOR_ARCHITECTURE% %PROCESSOR_IDENTIFIER% %PROCESSOR_LEVEL% %PROCESSOR_REVISION%
x86 x86 Family 6 Model 37 Stepping 2, GenuineIntel 6 2502

C:\>

try systeminfo command

If you display all of the info you want as the command prompt you won't have any space left to type a command.

if you only need the information regarding OS, then type:
systeminfo | find "OS"

for the processor:

systeminfo | find "Processor"