Home / Market / Which Tool

Which Tool

Locate the full path of executable commands in the system PATH. Find command locations, verify installation, and resolve command conflicts.

skill★ 00 dlclawhubMIT-0Install in CosmosUpstream Source

Documentation & Preview

#!/usr/bin/env python3 """Which Tool - Find command.""" import argparse, shutil, sys parser = argparse.ArgumentParser() parser.add_argument('cmd') args = parser.parse_args() path = shutil.which(args.cmd) print(path if path else f"Command not found: {args.cmd}")