![](https://i0.wp.com/media.dev.to/cdn-cgi/image/width=1000,height=500,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc7m3lsl4y70cl0ekupoy.png?w=1200&ssl=1)
The which
command gives you the local path of it:
$ which redis-cli
/usr/bin/redis-cli
And, if you are using a Debian based distro, you can combine it with dpkg
to figure it out from which package does it comes from:
$ dpkg -S `which redis-cli` redis-tools: /usr/bin/redis-cli