The which utility takes a list of command names and searches the path for each executable file that would be run had these commands actually been invoked.