I want use a command such as this :
which node && cd $_
to jump in the directory when the binary file reside, but the which command return all the path + name of binary ,so i get an error :
bash: cd: node: No such file or directory
I'm looking for new command move me in the right place.