我对 CentOS 6 安装的根文件夹中的 .bashrc 文件进行了一些更改,然后撤消了更改并重新上传了文件,但现在我在终端窗口中收到一条持续的错误消息,显示“第 19 行:语法错误:文件意外结束”。
我很茫然,如果有人能告诉我哪里出错了,我将不胜感激。内容是:
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export LS_OPTIONS="--human --color=always"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -Al'