This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Info about OS by command in Cygwin
- From: Christian Franke <Christian dot Franke at t-online dot de>
- To: cygwin at cygwin dot com
- Date: Sat, 28 Feb 2009 13:51:13 +0100
- Subject: Re: Info about OS by command in Cygwin
- References: <gobb1o$6li$1@ger.gmane.org>
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/