Thursday, January 3, 2013

Check if system is 32bit or 64bit

Im always looking for cleaner ways to get the architecture of my running host for my scripts.

Here is some commands Ive come across.

arch
getconf LONG_BIT

and then the classic

uname -m

HTH
Brent

No comments:

Post a Comment