Question Locked

How do I determine word size on a Linux system?

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I write a software package that has to run on a variety of Linux systems. Which files are installed depend upon whether the system uses 32- or 64-bit architecture. I haven't found a reliable way to determine the word size of the current machine. Is there a simple (or even complex) way to tell using shell commands the bitness of a given machine?

2 replies

This discussion is closed to new replies.