operating system - How to get whether OS is 32 bit or 64 bit by UNIX command? -
how know bits of operating system? in advance.
in linux, answer such generic question using
uname -m
or even:
getconf long_bit
in c can use uname(2) system call.
in windows can use:
systeminfo | find /i "system type"
or examine environment:
set | find "programfiles(x86)"
(or getenv() in c)
Comments
Post a Comment