You are assuming a bit too much here.
Which tells you the preferred executable with that name, while command tells you what will run if you execute it on the current shell.
From what I can tell, one does not replace the other. But yes, for your example of usage, command is more correct.
You are assuming a bit too much here.
Which tells you the preferred executable with that name, while command tells you what will run if you execute it on the current shell.
From what I can tell, one does not replace the other. But yes, for your example of usage, command is more correct.