why my moodle directory are installed in my home ?i build my moodle site on linux mint with bitnami moodle stack
Did you install it with root privileges (i.e. using sudo)? Otherwise it will be installed in your home folder (as it wouldn't have privileges to write in /opt.
Hope it helps.
Javier J. Salmerón