Fix: bash: 127: command not found


When you try to execute a command on the Terminal and you get the error code 127, then the reason for the error is that the command is not found.


Example:
bash: 127: command not found

Reason for 127 Error:

  • The command does not exist.
  • You have a typo in the command name?
  • The command exists but is not available in PATH.
  • The command Package/Binary is not installed on your Linux/Ubuntu/Mac System.
  • You do not have permission to execute the command.

Fix: 127 Error:

  • Make sure the command exists, you can make use of which command to verify,
    which python3
  • Make sure there is no typo in the command name.
  • If the command does not exist in the PATH, do add it.
  • If the command Package/Binary is not installed, get it installed.
  • Make sure you do have permission to execute the command.
bash- 127- command not found

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap