how to activate conda environment on linux terminal

C++
conda config --set auto_activate_base trueconda create -n test_env python=3.6.3 anaconda
conda create --name <env_name> #this creates the environment
conda activate <env_name> #this activates the environment

#if conda activate <env_name> does not work then try the following
source ~/anaconda3/etc/profile.d/conda.sh
conda activate <env_name>conda activate myenv
Source

Also in C++: