Learn how to install Kubernetes kubectl in your local machine.

Kubectl is Kubernetes command line tool for communicating with a Kubernetes cluster’s control plane, using the Kubernetes API.

You need to download the exe file using a curl command as shown below.

curl -LO https://dl.k8s.io/release/v1.23.0/bin/linux/amd64/kubectl

You can also type just the URL shown below to download the kubectl.exe file.

https://dl.k8s.io/release/v1.23.0/bin/linux/amd64/kubectl

If you need other revisions of the kubectl, just change the directory name as shown below.
Change the text to the revision number you like. Please refer to Kubernetes.io for details.

https://dl.k8s.io/release/v/bin/linux/amd64/kubectl

Reference