Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

Advanced users • Re: How to ascertain if running 32 or 64 bit OS

$
0
0
My question is there some simple/direct means of detecting the bit size of the running OS?

Something like this?:

Code:

if [ "$(uname -m)" = "aarch64" ]; then  echo -n "64"else  echo -n "32"fiecho -n "-bit kernel / "if [ "$(dpkg --print-architecture)" = "arm64" ]; then  echo -n "64"else  echo -n "32"fiecho "-bit userland"

Statistics: Posted by RonR — Tue Feb 27, 2024 6:56 am



Viewing all articles
Browse latest Browse all 8013

Trending Articles