"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

Does Mobile application requires hosting service?

Yes, you need a hosting service for the application backend to manage the following thing....

what is mod security? How to fix the 403 forbidden error in WordPress?

Mod Security is a web app firewall (WAF). It monitors and blocks the malicious incoming...

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

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

PHP Fatal error: Cannot redeclare

If your browser saw an error message PHP Fatal error: Cannot redeclare function it is an issue...

  • 647 Users Found This Useful

Was this answer helpful?