title: How can I add a name for an existing conda environment on Linux?
body: <p>I just started using conda to install packages two months ago. At that moment, following instruction online, I silly created individual environment for each package. I have to switch between environments. I did not give a name for each environment, so I have to input whole path. I am wondering how to add a name for an existing environment?</p>
  
  <p>If I run "conda env list", I could get below output which is saved in ~/.conda/environments.txt</p>
  
  <pre><code>base                  *  /cm/shared/apps/anaconda2
  py27                     /cm/shared/apps/anaconda2/envs/py27
                           /cm/shared/apps/anaconda3
                           /cm/shared/apps/anaconda3/envs/gsas2_env
                           /cm/shared/apps/anaconda3/envs/pmg_env
                           /cm/shared/apps/anaconda3/envs/py3.8
                           /cm/shared/apps/anaconda3/envs/r_env
                           /cm/shared/apps/anaconda3/envs/scipy_env
  </code></pre>
  
  <p>I hope to create a name for each environment, just like "py27" is for "/cm/shared/apps/anaconda2/envs/py27". </p>
  
  <p>I highly appreciate it if you could directly merge all environments into one.</p>
  
  <p>Thanks for your help.</p>
  
  <p>BTW: I created these environments using the root account, and then copy the path to regular user account "~/.conda/environments.txt"</p>