Re:My Favorite One Liners
by pletnes on Monday May 03, 2021 @01:33PM
(#27028066)
Also «open somefile.txt» can open, well, any file or directory, just as if you double clicked it. It works on multiple files, too. And possibly URLs, but I don’t have a mac anymore to check.
For linux one can use `xdg-open .` to use the associated application. Works with pdf, image files, videos, etc.
I have the alias x=xdg-open in my .bashrc, so that I use `x somefile` to open files.