delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/02/28/07:51:37

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_20
X-Spam-Check-By: sourceware.org
Message-ID: <49A93341.7040809@t-online.de>
Date: Sat, 28 Feb 2009 13:51:13 +0100
From: Christian Franke <Christian DOT Franke AT t-online DOT de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 SeaMonkey/1.1.11
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Info about OS by command in Cygwin
References: <gobb1o$6li$1 AT ger DOT gmane DOT org>
In-Reply-To: <gobb1o$6li$1@ger.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Thomas Wiedmann wrote:
> by which Cygwin/bash command can I get detailed information about the 
> Operating System, e. g. about the Windows version (XP? SP?)?
> Trying with the Windows command "ver" I've got the error "-bash: ver: 
> command not found".

'uname' and '/proc/version' show the Windows version number 
(NT-5.0=2000, 5.1=XP, 5.2=2003, 6.0=Vista) but not the SP version. The 
'ver' is a cmd.exe builtin command and can also be run from bash:

$ uname
CYGWIN_NT-5.1

$ cat /proc/version
CYGWIN_NT-5.1 1.5.25(0.156/4/2) 2008-06-12 19:34

$ cmd /c ver

Microsoft Windows XP [Version 5.1.2600]


Hope this helps,
Christian


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019