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

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

 -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
重新登录即可。



更多参考:

AIX mount RedHat的NFS

误删除/dev/dsk 和/dev/rdsk 下的文件怎么办?

unary operator expected

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

Linux下如何查看文件秒级修改及访问时间

EM乱码解决

linux里端口转发

windows xp 下使用FileZilla密钥

java.net.SocketException: Too many open files 问题的解决办法

UNExcepted inconsistency; run fsck manually

如何修改linux的mac地址?

mysqldump: Got error: 1066: Not unique table/alias

rsync详解一

rsync详解二

更改mysql的默认安装目录

httpd: apr_sockaddr_info_get() failed for centos1113

Real domain name required for sender address

Connection refused by [127.0.0.1]

MySQL bin_log文件占用空间太大

Centos 5 多路径配置步骤

rpc mount export: RPC: Unable to receive; errno = No route to host

nohup和screen的比较

vmware workstation 8 共享磁盘


你可能感兴趣的:(linux)