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

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -