技术文章

-bash: /root/.bash_profile: line 15: syntax error: unexpected end of file

7/24/18, 8 2197

登陆到系统后报下面这个错误:

-bash: /root/.bash_profile: line 15: syntax error: unexpected end of file
-bash-3.2#

这个报错的解决办法。如下:
-bash-3.2# cd  /root/
-bash-3.2# touch  .bash_profile
-bash-3.2#dos2unix   .bash_profile
dos2unix: converting file .bash_profile to UNIX format ...
-bash-3.2#
-bash-3.2# exit
重新登录即可。