I am new to kubernetes, today i installed eksctl in EC2 server with Amazon linux 2 OS.
But getting error as "-bash: /usr/local/bin/eksctl: cannot execute binary file", while running the eksctl.
Steps I followed from the link "https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html"
curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
sudo mv /tmp/eksctl /usr/local/bin
eksctl version