Date: Sat, 13 Jun 2020 08:54:20 -0500 From: Valeri Galtsev <galtsev@kicp.uchicago.edu> To: freebsd-questions@freebsd.org Subject: Re: Find out OS version and plattform? Message-ID: <3567942c-071f-378f-56d6-82035f95f85a@kicp.uchicago.edu> In-Reply-To: <800241a1-ce3a-ce19-63f8-e9a77032a7f1@yuripv.dev> References: <16b61b7a-a313-883a-067a-b424b488b2de@nebelschwaden.de> <cb90b4ed-1a1a-6a1f-a2f4-da19795ccdca@FreeBSD.org> <20200613091714.aa727af47134d742d6136118@sohara.org> <800241a1-ce3a-ce19-63f8-e9a77032a7f1@yuripv.dev>
next in thread | previous in thread | raw e-mail | index | archive | help
On 6/13/20 3:20 AM, Yuri Pankov wrote: > Steve O'Hara-Smith wrote: >> On Sat, 13 Jun 2020 09:00:00 +0100 >> Matthew Seaman <matthew@FreeBSD.org> wrote: >> >>> 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. >> >> Since when ? There isn't one on my 12.1p3 box. > > It seems to be only in stable/12 and head at the moment, and it's > /var/run/os-release by default. the last (/var/run/...) must be related to STABLE only as well. Incidentally, the OP's question was about [which version...] filesystem contains, - filesystem is mounted on different machine, not booted. /var/run/... will not give OP correct answer. Valeri ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3567942c-071f-378f-56d6-82035f95f85a>