我用的是redhat 9,安装某种软件时需要在.cshrc中添加一个环境变量.
我在root下用根用户执行source .cshrc,却显示
[root@qhs root]# source .cshrc
alias rm='rm -i'
bash: alias: rm -i: not found
alias cp='cp -i'
bash: alias: cp -i: not found
alias mv='mv -i'
bash: alias: mv -i: not found
bash: setenv: command not found
bash: setenv: shizheyangdcommand not found
我的这个.cshrc文件是这样的
# .cshrc
# User specific aliases and functions
alias rm 'rm -i'
alias cp 'cp -i'
alias mv 'mv -i'