"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 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 Differences Between Forward Proxy and Reverse Proxy?

Generally, there are two types of proxy servers available which are Forward Proxy and Reverse...

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 resolve question marks and mysterious symbols on my site?

If you are seeing some strange symbols that are displaying on your site, it is due to incorrect...

How to check your VPS Disk Drive is SSD or HDD?

We use HyperV virtualization technology for our Denver based Classic and SSD Windows VPS. We have...

  • 647 Users Found This Useful

Was this answer helpful?