The which command in Linux: locating executable commands

Introduction

In the day-to-day of a system administrator or a developer working on the Linux command line, it is frequent to need to know exactly which binary is being executed when a command is invoked. The shell looks for the executable in the paths defined by the PATH variable, but sometimes there are multiple versions of the same program (for example, a system installation and another in /usr/local/bin) or one wants to confirm that the expected path is being used. The

This post is also available in ESPAÑOL.

Leave a Reply

Your email address will not be published. Required fields are marked *

Esta obra está bajo una Licencia Creative Commons Atribución 4.0 Internacional para Francesc Roig francesc@vivaldi.net .