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.

Reply via email to