command not found: shopt linux 配置./bashrc 错误
程序员文章站
2022-07-12 13:41:13
...
错误信息:
/home/diaoshe/.bashrc:16: command not found: shopt
/home/diaoshe/.bashrc:24: command not found: shopt
/home/diaoshe/.bashrc:108: command not found: shopt
有时候我们将某个命令直接配置到环境变量中来使用更为方便,本来之前我按照网上如下这种格式的方法是可以配置成功的
echo "export PATH=/home/vamei/Util/bin:$PATH" >> /home/vamei/.bashrc
source /home/vamei/.bashrc
但是由于前段时间自己把ubuntu的终端给改成了.zsh的了,所以如果继续照着上面的来就会报错,百度了一波,发现原来只需要将.bashrc改成.zshrc即可,其他都是一样的!
推荐阅读
-
linux脚本运行错误:$'ls\r': command not found
-
linux 解决 " command not found: shopt "的 "~/.bashrc" 配置问题
-
【Linux技术】command not found: shopt linux
-
command not found: shopt linux 配置./bashrc 错误
-
linux/centos “command not found: shopt “ “~/.bashrc“
-
Linux 错误: $'\r': command not found错误解决
-
Linux——错误-bash: sudo: command not found解决方法
-
linux启动进程报$: command not found错误
-
linux脚本运行错误:$'ls\r': command not found
-
linux 执行脚本出现 $'\r': command not found 错误