I want to automatically execute commands with the prefix /usr/bin/env
$/usr/bin/env composer install (this runs OK)
$/usr/bin/env cd public (failed ---> /usr/bin/env: cd: No such file or directory)
I'm new to Linux and in my opinion, using /usr/bin/env
is a weird way to write commands. I wonder why my second line didn't work (while some worked, like mkdir
or ls
)
The reason I cannot get rid of /usr/bin/env
is that I'm using Capistrano and it keeps prepending the prefix. If there is a way to get rid of /usr/bin/env
, that's even better.
Thank you in advance.
/usr/bin/env
in the first place./usr/bin/env