sudo problems

Latest response

I am running RedHat server with .NET Core 2.1.
I can happily run dotnet commands such as dotnet build, dotnet run etc.
However, if I try and sudo dotnet as in : sudo dotnet run I get the error sudo: dotnet: command not found.
Can anyone suggest why this is happening.

Andy

Responses