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.$ terraform console
> var.host_os
"linux"