Recover windows command line tools after git bash replace them with unix tools

I installed Git bash and selected the option β€œUse Git and additional Unix tools from the Windows command line”. I know there is a big red warning, but I thought it was β€œcool” for unix tools much better than Windows. I really did not think about the consequences.

So, I wanted to cancel the change by restoring the Windows tools (I really need it), but after removing git, make sure that there is no other find.exe, and not one Micorsoft sign, restart the computer several times, check the environment variables in the registry .. Unix tools are still used on the command line (I see, for example, the behavior of the find command in different ways).

How does the command line load a list of available commands and reference them?

thanks

+6
source share
1 answer

The command line loads the tools using the PATH environment variable.

Using "where" + the name of the tool ("where find", for example), you can see a list of paths from where it is looking for a command.

Therefore, removing a path that you do not need from the variable solves the problem.

+7
source

Source: https://habr.com/ru/post/972765/


All Articles