Overriding Terraform variables using TF_VAR_variable environment variable

If we have the variables.tf file as example from the terraform.tfvars file - take precedence for defaults - if we will define a TF_VAR_host_os environment variable and export it:

export TF_VAR_host_os=linux
Then we can override value declared in defaults by exporting TF_VAR_variable variable.
So, export it before using the terraform commands:
$ terraform console
> var.host_os
"linux"