How to add home directory path to be discovered by Unix which command?
I have installed node.js at custom location and added the location to the $PATH in .profile file.
I have installed node.js at custom location and added the location to the $PATH in .profile file.
I would like to take the output of a which command, and cd to the parent directory. For example, say I have the following:
I’ve been frustrated before with differences in output from the which command across different platforms (Linux vs. Solaris vx. OS X), with different shells possibly playing into the matter as well. type has been suggested as a better alternative, but how portable would that be?