"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

Why is my Autossl failing in cPanel?

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

How to add/host a website to VPS and point the domain to VPS?

Point 1: How to Add Website & Use Name Server of your VPS? (1) Host a website in the...

List of Database connection file location of various CMS.

Here is the list of  Database connection file locations of various CMS in cPanel. If you are...

How to choose an OS lower than Windows 2012 with 1 GB RAM?

We don't offer Windows 2008 Server OS anymore. We offer Windows Server OS 2012, 2016 and 2019....

MySQL timeout errors.

If your website is running with long and heavy queries, you may receive the MySQL timeout error....

  • 647 Users Found This Useful

Was this answer helpful?