首页 > command not found错误

command not found错误

我在.bashrc中用alias命令为hadoop定义了别名:

alias hadoop='/search/software/hadoop-client/hadoop/bin/hadoop'

但是在终端执行hadoop命令却出现如下提示:

-bash: hadoop: command not found

如果在命令行输入/search/software/hadoop-client/hadoop/bin/hadoop执行时正常的。

另外,当我在终端输入alias时,输出结果里面没有hadoop的别名设置,请问这是怎么回事?


Maybe source ~/.bashrc or restart your terminal

【热门文章】
【热门文章】