Try usingfreebsd-version
, optionally using the -u parameter.
strings /boot/kernel/kernel | grep -i version
FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0)
NAME="Linux Mint"
VERSION="18.3 (Sylvia)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 18.3"
VERSION_ID="18.3"
HOME_URL="http://www.linuxmint.com/"
SUPPORT_URL="http://forums.linuxmint.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/linuxmint/"
VERSION_CODENAME=sylvia
UBUNTU_CODENAME=xenial
balanga is probably looking for FreeBSD equivalent of file that exists in (if I remember correctly) Debian /etc/debian_version or /etc/issue or /etc/os-release.
On Live Linux Mint 18.3 there, in /etc is a symlink to /usr/lib/os-release that says:
As explained in this post,file /bin/sh
will tell you what major release and OSVERSION binaries are installed. Is this what you are trying to accomplish ?
sh: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 9.3, stripped
uname -a
inside the jail ? If yes, you should probably read the entire thread related to the link I gave you and more particularly the post of acheron. This command is not giving you information on the jail but rather on the host. That would explain what you see (i.e. your jail is still running FreeBSD 9.3).No need for that, you can jump straight to 11.1. Do make sure you have the latest patch version of 9.3-RELEASE before doing the upgrade though.IIRC, you cannot skip a major upgrade so you would need first to upgrade to 10.4-RELEASE and only then to 11.1-RELEASE.