command to know which OS we are using

Contributor
22May2008,11:35   #1
sharmila's Avatar
Hi All,
Can anyone let me know what is command to know which operating syatem we are using?

Reagrds,
Sharmila.
Go4Expert Founder
22May2008,15:30   #2
shabbir's Avatar
Refer - OS version detection for 32 and 64 bit OS.
Contributor
23May2008,00:25   #3
sharmila's Avatar
Hi Shabbir,
The article was good and I really don't know about this..

Actually my usecase is something like, we work on linux sys., but some time s we need to work on Solaris.. we know only the servers name and by using telnet we connect to the server. By seeing the name of teh machine we can't know it's OS, so will there be any command or any location in file system will tell us which OS it has?

Regards,
Sharmila.
Go4Expert Founder
23May2008,08:23   #4
shabbir's Avatar
It would depend on OS to OS and you probably need to get the list of commands supported by the OS.
Team Leader
23May2008,15:36   #5
pradeep's Avatar
type the command
Code:
uname -a
Contributor
23May2008,18:08   #6
sharmila's Avatar
Thanks pradeep.. got it....
Go4Expert Founder
23May2008,20:40   #7
shabbir's Avatar
Add some to Pradeep's Reputation using icon near the post made by pradeep.
Newbie Member
21Sep2010,15:13   #8
shanthi_amirtha's Avatar
command to know which OS we are using
Code:
uname -o

[/quote]