当我错误输入命令时,shell 会尝试查找提供该命令的软件包。如何禁用此功能?
例子:
[dave@dave cpp]$ sl
bash: sl: command not found...
Install package 'sl' to provide command 'sl'? [N/y]
如果没有提示我安装该命令的话我会喜欢。
答案1
答案2
做了
yum remove PackageKit-command-not-found
如果出现错误,
bash: /usr/libexec/pk-command-not-found: No such file or directory
您需要将以下行添加到 ~/.bashrc
unset command_not_found_handle