!which spark-submit/Users/youfeng/mambaforge/bin/spark-submit
Youfeng Zhou
November 15, 2022
Suppose we want to find the path of the command spark-submit in terminal, we have 4 ways to do it.
which commandWith a parameter -a will print all matching paths. In this case, there is only one.
command commandWe must pass the parameter -v or -V, otherwise, it will run the command.
type commandShow the path
Show the definition
Show the definition, excutable type, and path
whereis commandShow all the locations of the binary, source, manual page
Show the locations of the binary
Show the locations of the source