command -v cmd

Category: Shell & Bash

command -v cmd

Check if a command exists and show its path

Checks if a command exists and prints its path or type. Returns exit code 0 if found (useful in scripts).
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.