How to Locate Application Binaries in Linux (Find Where a Command Is Installed in Linux)

Have you ever typed git clone or git --version and wondered where the Git binary is actually being executed from?

Linux provides a simple command that allows you to locate the binary path of almost any application available in your shell.

which <application_name>

For example, to find the location of the Git binary:

which git

The output will look similar to:

/usr/bin/git

This tells you that when you run the git command, Linux is executing the binary located at /usr/bin/git.

The which command is particularly useful for confirming which binary is being used by the command line.

0 Comments