The dspmqinst command is used the display the root installation directory of MQ. In this example (on Linux), the root installation directory is /opt/mqm.
/opt/mqm/bin/dspmqinst InstName: Installation1 InstDesc: Identifier: 1 InstPath: /opt/mqm Version: 18.104.22.168 Primary: Yes State: Available
With the root installation directory idenfied, the "mqm" users /home/mqm/.bash_profile file can be updated to have the following.
PATH=$PATH:/opt/mqm9/bin export $PATH
In this way, commands in the "bin" directory can be issued without including <root installation directory/bin. For example, this is how you would issue the command if .bash_profile was not updated.
And this is how the command could be issued after .bash_profile has been updated.