Menu
  • Home
  • Network Status
  • News
  • Client Login
  • Open Ticket
  • Home
  • Network Status
  • News
  • Client Login
  • Open Ticket
home/Knowledge Base/Getting Started/Support Resources/Programming: Common Server Script/Binary Locations

Programming: Common Server Script/Binary Locations

10 views 1

Joseph Matino
January 13, 2024

The Unix ‘which’ command is a powerful tool designed to locate the exact path of executables in the system. When you input a command or a set of commands into the Unix shell, ‘which’ goes to work to find where these executable files are stored.

How Does ‘which’ Work? Upon executing the ‘which’ command with one or more arguments, it responds by displaying the full path to the executable file that corresponds to each argument. This feature is particularly useful for verifying which version of a command the shell will execute, based on the user’s environment and path settings.

Practical Usage of ‘which’ Here’s an example of how ‘which’ functions in a typical scenario:

which php  /usr/bin/php

In this example, the ‘which’ command is used to locate the PHP executable. The output ‘/usr/bin/php’ is the absolute path where the PHP executable is stored.

Common Server Script/Binary Locations Below is a list of some of the most frequently used server scripts/binaries and their typical locations:

  1. PHP
    • Location: /usr/bin/php
  2. MySQL
    • Location: /usr/bin/mysql
  3. CURL
    • Location: /usr/bin/curl
  4. WGET
    • Location: /usr/bin/wget
  5. Bash Script
    • Location: /usr/bin/bash
  6. PERL
    • Location: /usr/bin/perl
  7. PYTHON
    • Location: /usr/bin/python

These paths represent the standard locations for these executables on a Unix system. Knowing these paths is essential for system administration and scripting purposes, as it helps in efficiently managing and executing various server scripts and binaries.

Was this helpful?

1 Yes  No
Related Articles
  • How to Perform a Ping Test in Windows, Mac OS, and Linux
  • Our Network Status Page

Didn't find your answer? Contact Us

Leave A Comment Cancel reply

Support Resources
  • Programming: Common Server Script/Binary Locations
  • Our Network Status Page
  • How to Perform a Ping Test in Windows, Mac OS, and Linux
All Categories
  • Domain Transfers
  • Domain Registrations
  • Web Hosting FAQs
  • Support Resources
  • WordPress Toolkit
  • Domains
  • WordPress
  • Email FAQs
  • SSL Certificates

  Our Network Status Page

How to Perform a Ping Test in Windows, Mac OS, and Linux  

Copyright © 2024 Hostwek. All Rights Reserved.