Johnny Matthews | Open your File Manager from the Terminal in Ubuntu Mate

Do you ever find yourself 22 folders deep into some long lost repository or Drupal theme, and need to jump into the file manager at this point to take a look at some pictures or something? This was written on 28th of September 2017.

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.