2 ms·This should also do it: realpath /proc/$$/exeby ashayh 6y agoThis should also do it: realpath /proc/$$/exesaagarjha 6y agoNot on macOSsegfaultbuserr 6y ago+1. On Linux, with /proc, it's just much easier.