Info about OS by command in Cygwin
Christian Franke
Christian.Franke@t-online.de
Sat Feb 28 12:51:00 GMT 2009
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/
More information about the Cygwin
mailing list