prevent bash to make suggestions for unknown commands (similar commands or apt packages)
3
votes
1
answer
743
views
On some Linux installations, there is a 'feature' in which bash automatically suggests similar commands or apt packages when you type a command which is not found on the path.
I find it very annoying, as this takes several seconds and blocks the terminal.
Where is this configured (bash, Ubuntu)? Where can I change/disable this? I just want the errormessage of an unknown command and nothing more.
Cannot find anything inside ~/.bashrc .
This is the output (takes 10 seconds) on my corporate machine, shortened:
> eco 'hello world'
Command 'eco' not found, did you mean:
command 'ecj' from deb ecj (3.16.0-1)
command 'ecc' from deb ecere-dev (0.44.15-1build3)
[...]
command 'co' from deb rcs (5.9.4-6)
command 'ico' from deb x11-apps (7.7+8)
command 'peco' from deb peco (0.5.1-1)
command 'ecm' from deb gmp-ecm (7.0.4+ds-5)
Try: apt install
>
Asked by Blindleistung
(133 rep)
Mar 13, 2023, 03:38 PM
Last activity: Mar 14, 2023, 12:02 AM
Last activity: Mar 14, 2023, 12:02 AM