get Operating system command

C++
ver && uname	#First command show version in Windows and second in Unix
Source

Also in C++: