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

This should also do it: realpath /proc/$$/exe


+1. On Linux, with /proc, it's just much easier.


Not on macOS




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

Search: