On Mon 31 Jan 2022 at 08:26:35 (-0500), Greg Wooledge wrote: > On Mon, Jan 31, 2022 at 08:23:45AM -0500, Stefan Monnier wrote: > > > 1. From current console, how can I determine which is running? > > > [ equivalent of /etc/debian_version would be ideal ] > > > > Depends what you mean. The answer may also be "both" depending on what > > you care about. E.g. many of my machines run an amd64 kernel with an > > i386 set of Debian binaries running on top of it, and some of them also > > include a few Debian amd64 binaries. > > > > `uname -a` tells you what kernel you're running. > > `file /bin/sh` should tell you what that executable uses. > > /bin/sh is a symlink, so that's not a useful command to determine > your arch. I typically use "file /bin/ls" instead.
file -L is a useful habit for looking at system files. Cheers, David.