1. The echo command in Linux
The shell's echo command is used for string output. See:
Shell echo command | Novice Tutorial
Two, echo > and echo >>
The difference between echo > and echo >> is detailed in:
Linux echo's> and>>_xiaotongzhi_w's blog-CSDN blog
sudo echo "export PYTHONPATH="/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages/yaml:$PYTHONPATH"" >> ~/.bashrc
That is, PYTHONPATH is appended to the end of the .bashrc file