Tuesday, 9 January 2007

How do I determine what operating system I'm using from terminal or console ?

If you only have text on the computer or only a console to work with often you can determine what operating system you are using by using any of the below commands.

Note: On some systems the command to view what operating system and/or its version will be disabled for security reasons and not all operating systems will support all of the below commands.

1. "ver" for Dos/Windows
2. "winver" for Dos/Windows
3. "uname" for Unix/Linux Note: For all the switches always check out the help. For ex- In case of Unix/LInix type "uname --help". Additional information about the Linux version can also be found by using the below commands if the uname command is not available.

Type: cat /etc/issue Following is the example output: Red Hat Enterprise Linux AS release 3

No comments:

Post a Comment