解决方法有两种: 1。要使用回删键(backspace)时,同时按住ctrl键 2。设定环境变量 在bash下:$ stty erase ^? 或者把 stty erase ^? 添加到.bash_profile中。 在csh下:$ stty erase ^H 或者把 stty erase ^H 添加到.cshrc中。