Add the following line into your .bashrc
file:
alias ofm=`gnome-open .
Make sure to include the dot at the end.
Run source ~/.bashrc
and you should now be able to run ofm
within a terminal to open your file manager at the same directory your terminal is currently in.
This post was build with Ubuntu Mate in mind, but any Linux distro using the Gnome file manager should work fine.