terraform

Install Terraform on Ubuntu 20.x

sudo apt-get update && sudo apt-get install -y gnupg software-properties-common curl

curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -

sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"

sudo apt-get update && sudo apt-get install terraform

Verify the installation

terraform -help

Enable tab completion

touch ~/.bashrc

OR

touch ~/.zshrc

Install the autocomplete package
terraform -install-autocomplete