WHICH(1)
โจ WHICH(1) โ General Commands Manual โจ
๐ NAME
which - locate a command ๐
๐ SYNOPSIS
which [-as] filename ...
๐ DESCRIPTION
okay so bestie, which is literally the detective of your terminal ๐ต๏ธโโ๏ธโจ it tells you the pathnames of the files (or links) that would get executed in the current environment, if you gave its arguments as commands to a strictly POSIX-conformant shell. ๐ซถ it does this by searching the PATH for executable files that match the names you hand it. ๐ธ
and ngl, it does not canonicalize path names, so what you see is what you get ๐
๐ฆ OPTIONS
-aโ print all matching pathnames of each argument, not just the first one ๐-sโ silently return0if all of the executables were found, or1otherwise ๐คซ
๐ฅ EXIT STATUS
0โ if all specified commands are found and executable โจ slay1โ if one or more specified commands is nonexistent or not executable ๐ญ2โ if an invalid option is specified ๐
Debian ยท 29 Jun 2016 ยท WHICH(1) ๐ that's the whole tea, bestie, love you ๐
๐ฆ where this page comes from
- debian trixie: debianutils 5.23.2 ยท GPL-2.0-or-later
- nixpkgs unstable: debianutils 5.23.2
- ubuntu noble: debianutils 5.17build1 ยท GPL-2.0-or-later
- ubuntu questing: debianutils 5.23.2 ยท GPL-2.0-or-later
- ubuntu resolute: debianutils 5.23.2build1 ยท GPL-2.0-or-later
- ubuntu stonking: debianutils 5.24 ยท GPL-2.0-or-later
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms