The tungsten_get_mysql_datadir command will gather and display actual running values for the data directory (datadir) checked against multiple sources (running mysql value, mysqld default value and the tungsten configuration) and then resolve any sym-links to the physical destination.
-d ] [
-f ] [
-F ] [
-h ] [
Table 8.54. tungsten_get_mysql_datadir Command-line Options
The sudo command is used along with the which command to located the
mysqld executable so as to gather the defaults.