gpt4 book ai didi

shell - ubuntu : how to clear $SHELL history

转载 作者:行者123 更新时间:2023-12-04 18:47:34 24 4
gpt4 key购买 nike

No command 'exprt' found, did you mean:
Command 'expr' from package 'coreutils' (main)
exprt: command not found

每次打开终端时我都会收到此消息。 'exprt' 是我在安装过程中的拼写错误。我试过了
# history -c
# history -cw

但它仍然无法摆脱这个问题,尤其是当
# exec $SHELL

它也提示相同的错误

任何解决方案?我是ubuntu的新手...

最佳答案

这可能只是您的一个 shell 配置文件中的错字吗?

尝试运行以下命令来搜索您的 .profile、.bash_profile、.bashrc 等中的违规行:

grep 'exprt' ~/.*

如果您发现错字,请编辑该行,使其显示“export”而不是“exprt”,如果它应该是这样的话。

关于shell - ubuntu : how to clear $SHELL history,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24592877/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com