Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Systems Interfaces & Deployment > Mathematica System Setup > System Information > $OperatingSystem >

$OperatingSystem

$OperatingSystem
is a string giving the type of operating system under which Mathematica is being run.
  • You can use $OperatingSystem to get an idea of what external commands will be available from within Mathematica.
  • $OperatingSystem typically has the same value for different versions or variants of a particular operating system.
Programmatically determine the host operating system:
Programmatically determine the host operating system:
In[1]:=
Click for copyable input
Out[1]=
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF