"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

Comparison between Plesk and SolidCP ControlPanel.

Please refer to the below table which is showing the comparison between Plesk and SolidCP Control...

How to make your ASP.Net applications secure?

Adding security to Web apps may not be great fun but it doesn't have to be hard. You can easily...

MySQL timeout errors.

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

How to make a strong password?

A strong password provides essential protection from financial fraud and identity theft. One of...

Free Anti-Malwares/ for Windows and Linux based Servers

As we all know, the internet is open and your server may receive threats of malware and Spywares...

  • 647 Users Found This Useful

Was this answer helpful?