YouTip LogoYouTip

Linux Comm Which

# Linux which Command [![Image 3: Linux Command Manual](#) Linux Command Manual](#) The Linux `which` command is used to find files. The `which` command searches for files that match the criteria in the directories set by the environment variable `$PATH`. ### Syntax which [file...] **Parameters**: * `-n` Specifies the filename length. The specified length must be greater than or equal to the longest filename among all files. * `-p` Same as the `-n` parameter, but here `` includes the file's path. * `-w` Specifies the column width for output. * `-V` Displays version information. ### Example Use the command "which" to find the absolute path of the command "bash", enter the following command: $ which bash After executing the above command, the output information is as follows: /bin/bash #Absolute path of the bash executable program [![Image 4: Linux Command Manual](#) Linux Command Manual](#)
← Linux Comm CpLinux Comm Umask β†’