Please check log & your .bashrc file in your $HOME
usually there is invalid line in .bashrc causes this problem.
e.g.
alias 'ls=ls --color'
test -s ~/.alias && . ~/.alias || true
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/lib
export PATH=$PATH:~//bin/vtstscripts/:/home/users/gx/tools/QE/qe-6.0/bin
export PATH=$PATH:~/jzq/script
export PYTHONPATH=~/phonopy-1.8.5.1/lib/python
tttt
Here the last line tttt is invalid, please delete this line.