"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

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

How to register domain and make the payment?

If you are a registered client, you can directly refer to the following steps to order a new...

Where do i put my review for Accuwebhosting.com?

Here, is a list of website links where you can put your reviews for Accuwebhosting....

How to activate SSL Certificate?

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

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

  • 647 Users Found This Useful

Was this answer helpful?