How to open a file from the command line using default application
The most common way to do this is to use xdg-open, simply install xdg-utils$ apt install xdg-utils
$ xdg-open foo
$ xdg-email someone@important.com
$ xdg-screensaver lock