From owner-freebsd-questions@freebsd.org Sat Jun 13 13:54:23 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B23CB338BCC for ; Sat, 13 Jun 2020 13:54:23 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from kicp.uchicago.edu (kicp.uchicago.edu [128.135.20.70]) by mx1.freebsd.org (Postfix) with ESMTP id 49kfGQ5gvWz45ks for ; Sat, 13 Jun 2020 13:54:22 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from [192.168.43.113] (unknown [172.58.143.16]) (Authenticated sender: galtsev) by kicp.uchicago.edu (Postfix) with ESMTPSA id EF8A14E639 for ; Sat, 13 Jun 2020 08:54:21 -0500 (CDT) Subject: Re: Find out OS version and plattform? To: freebsd-questions@freebsd.org References: <16b61b7a-a313-883a-067a-b424b488b2de@nebelschwaden.de> <20200613091714.aa727af47134d742d6136118@sohara.org> <800241a1-ce3a-ce19-63f8-e9a77032a7f1@yuripv.dev> From: Valeri Galtsev Message-ID: <3567942c-071f-378f-56d6-82035f95f85a@kicp.uchicago.edu> Date: Sat, 13 Jun 2020 08:54:20 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <800241a1-ce3a-ce19-63f8-e9a77032a7f1@yuripv.dev> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 49kfGQ5gvWz45ks X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=uchicago.edu (policy=none); spf=none (mx1.freebsd.org: domain of galtsev@kicp.uchicago.edu has no SPF policy when checking 128.135.20.70) smtp.mailfrom=galtsev@kicp.uchicago.edu X-Spamd-Result: default: False [2.12 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[uchicago.edu : No valid SPF, No valid DKIM,none]; RECEIVED_SPAMHAUS_PBL(0.00)[172.58.143.16:received]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(0.60)[0.602]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_SHORT(-0.31)[-0.307]; NEURAL_SPAM_LONG(0.73)[0.728]; R_SPF_NA(0.00)[no SPF record]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:160, ipnet:128.135.0.0/16, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2020 13:54:23 -0000 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 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 ++++++++++++++++++++++++++++++++++++++++