"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.


Related Articles

How Can I Test My Website Before Switching DNS?

It is always important to test your website on a new web host before you change the Nameservers...

How to activate SSL Certificate?

You can activate SSL Certificate to get secure connections on your website. Looking to purchase...

Why is my Autossl failing in cPanel?

ERROR Local DNS DCV error (mail.example.com): The DNS query to...

How to enable TLS in Google Chrome, Mozilla Firefox and Internet Explorer?

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

what are the supported OS for the .net 5?

Microsoft released the .Net 5.0 on 12th December 2020. You can download the new version of .Net...

  • 647 Users Found This Useful

Was this answer helpful?