Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> My favourite one-liner is "open .", to open the current directory in Finder.

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.



Thank you, thank you, thank you! "open ." is post-it note worthy.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: