... version
1
the command
sw_vers -productVersion
can be used to know the Mac OS X version being used
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
...
2
the command
ls -lrt $HOME/Library/Preferences/*[xX]11*plist
can be used to determine the X implementation and its configuration file
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .