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

How to check Ping Report from Windows 7, 8 and 10?

You can use our Ping testing tool to test Ping alert from your local system to our Denver...

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 to check if my system is under DDoS attack?

What Is the DDoS attack? DDoS stands for the distributed denial-of-service attack. You may have...

Diagnostic Tools - Check Website Connection, Website Availability

Ping Ping is a command to check whether a destination computer system is working on a network or...

  • 647 Users Found This Useful

Was this answer helpful?