"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

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

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

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

How to activate SSL Certificate?

You can activate SSL Certificate to get secure connections on your website. Looking to purchase...

  • 647 Users Found This Useful

Was this answer helpful?