I'm trying to run an executable via the cli, like so:
but i get "command not found" so i have to do:
which works, how do i set it so i only have to use the executable name?
You can also symlink to a place in the standard path. If you need to execute it outside of shell or if it had to be available for all users
sudo ln -s /usr/lib/php/bin/phpunit /usr/local/bin
/usr/local/bin is in the path and is the common location of user installed binaries, so its contents are available for execution systemwide.