"which" command in Linux

which is a powerful command used in SSH environment to find out path of perl script, php executables, sendmail and many other linux utilities.

Try the following in SSH:


which php

>>> Results: /usr/local/bin/php
(Results will reflect according to your server settings)

which perl

>>> Results: /usr/local/bin/perl
(Results will reflect according to your server settings)

You can try this command for sendmail and other script locations.


  • 647 Users Found This Useful

Was this answer helpful?

Related Articles

How to enable TLS in the browser

Here are the steps you can follow to enable TLS in different browsers: Firefox Type...

How to modify a hosts file in Windows 7, Windows 8/10, Mac OS and Ubuntu?

By Editing Host File, you can point IP Address for a Domain in your local system.   Windows 7 :...

How to enable "I'm Under Attack" mode in CloudFlare Panel?

Cloudflare provides additional protection called "I m under attack" for a website which is under...

How do I check current established connections and network utilization of my VPS?

Windows VPS For current established connections and processes: Go to Run Type cmd, hit...

How to Add DMARC Record in Cloudflare?

We can add DMARC record for our Domain to protect the domain from phishing and spoofing attacks....