kubectl message appearing every time when I start the terminal

1/25/2019

I have uninstalled minikube through this post and now every time I open the terminal this message appears:

kubectl: command not found

Command 'minikube' not found, did you mean:

  command 'minitube' from deb minitube

Try: sudo apt install <deb name>

I have no idea what is going on. Can someone help me to stop this message from appearing?

-- Michael Pacheco
kubernetes
minikube
terminal

1 Answer

1/25/2019

You probably have entries in your ~/.bashrc file that are both calling minikube or/and kubectl. Just edit/remove those entries. For example:

vi ~/.bashrc

In the vi editor:

/kubectl
dd
/minikube
dd
:wq
-- Rico
Source: StackOverflow