You can turn off color in a Linux terminal/bash session by setting the environment variable TERM to dumb
. You can do this by running the following command in your terminal:
export TERM=dumb
This will disable color output in the terminal until the terminal is closed or the environment variable is reset. To make the change permanent, add the above line to your shell profile file, such as .bashrc
, .bash_profile
, or .bash_aliases
, depending on your setup.