目前我正在尝试向我的 .bashrc 文件添加一个 ns-2 的路径,我已经安装了 ns-allinone-2.34,但是在 shell 中输入命令 ns 时会得到结果:command not found。
这是我当前的 .bashrc 文件的样子,我使用 gedit 进行了编辑:
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
export PATH=/home/michael/ns-allinone-2.34/bin/ns:/home/michael/ns-allinone-2.34/bin/nam:$PATH
能否有人解释一下为什么这不起作用,或者有可能的解决方案是什么?我正在使用 Fedora 17。