I deleted a file called 'exec -l' from my home folder and now kubectl gives me an error

9/19/2019

In my home folder (on macOS) I noticed a strange file called 'exec -l'. I deleted it, and now when I try to use kubectl I get the following error:

localhost:~ alex$ kubectl --namespace sandbox get pods
Unable to connect to the server: 
error executing access token command "/Users/alex/exec -l 
/bin/bash/google-cloud-sdk/bin/gcloud config config-helper --format=json":
err=fork/exec /Users/alex/exec -l /bin/bash/google-cloud-sdk/bin/gcloud: 
no such file or directory output= stderr=

Is there any way I can get that file back? What even was it?

-- Alex
gcloud
kubectl
kubernetes

0 Answers