On the terminal you would need to change directory (
cd
) to the directory where your XenForo files are, e.g. maybe something like (wouldn't be able to tell you for vertain)
Code:
cd /home/domain/public_html
From there the
php cmd.php xf:rebuild-master-data
command should work