which
English [wɪtʃ] US [hwɪtʃ,wɪtʃ]
pron. Which; which one; which ones; that, refers to the things mentioned earlier
adj.Which one; which ones
Linux which command syntax
Function: which command is used to find files. The which command will search for files that meet the conditions in the directory set by the environment variable $PATH.
Syntax: which [file...]
Linux which command example
Use the command "which" to view the absolute path of the command "bash", enter the following command:
$ which bash
After the above command is executed, the output information is as follows:
/bin/bash #bash可执行程序的绝对路径