Home

How to fix exit status 127? I need help.

Alton Alexander
By Alton AlexanderUpdated on June 4th, 2022

If a command is not found, the child process created to execute it returns a status of 127. This is considered a fatal error.

You are here because you have a question about:

  • error code 127
  • exit status 127

1. Check if the command is installed

To check if the command is installed, the user would use the command "which command" to determine the name of the command. If the command is not installed, the user would then need to install the command. After the command is installed, the user would use the command "which command" to determine the name of the command. If the command is not installed, the user would then need to determine the location of the command. After the command is located, the user would use the command "which command" to determine the name of the command. If the command is not installed, the user would then need to run the command.

2. Check the spelling of the command

  1. To check the spelling of the command, type it into the terminal.
  2. If the spelling is correct, the command will run without error.
  3. If the spelling is not correct, the terminal will display an error message and the command will not run.

3. Use the full path to the command

The steps to use the full path to the command to fix exit status 127 are as follows:

  1. Open a command prompt.
  2. Type cd C:\Windows\System32
  3. Type sc command to open the System Control Panel.
  4. Type exit status 127 to fix the exit status.

Still not working? maybe try one of these options:

  1. Check the permissions of the command