Find out OS version and plattform?

Matthew Seaman matthew at FreeBSD.org
Sat Jun 13 08:00:06 UTC 2020


On 12/06/2020 10:03, Ede Wolf wrote:
> linux has something like /etc/os-release, which is a textfile, is there
> an equivalent [method] in FreeBSD?

Yes.  It's exactly the same.

{{{
lucid-nonsense:~:% cat /etc/os-release
NAME=FreeBSD
VERSION=12.1-STABLE
VERSION_ID=12.1
ID=freebsd
ANSI_COLOR="0;31"
PRETTY_NAME="FreeBSD 12.1-STABLE"
CPE_NAME=cpe:/o:freebsd:freebsd:12.1
HOME_URL=https://FreeBSD.org/
BUG_REPORT_URL=https://bugs.FreeBSD.org/
}}}

	Matthew

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20200613/e7e89e3b/attachment.sig>


More information about the freebsd-questions mailing list