does linux have a "did you mean......" component for the command line like Google?
john.toliver at gmail.com
Fri Nov 16 15:22:08 UTC 2007
Actually the tab command works. You only need to be clear on the first
few letters although the other options are interesting as well. Thanks.
Owen Townend wrote:
> On Fri, 2007-11-16 at 01:34 -0500, John Toliver wrote:
>> You know how when you type something that may be misspelled and Google
>> comes back with "Did you mean this?" spelling properly what you were
>> trying to search for. Can I install a package that lets me get to the
>> command I am looking for even if I happen to mis a letter? For example
>> smbpaswd vs. smbpasswd. Big difference when trying to get the system to
>> play nice in a windows network.
> Try zsh, it has this feature as well as a host of others. The feature
> is called 'Command Correction'.
> This site should sell it for you:
> An extract:
> Typo correction. How many times have you typed something
> like aptg-et or other mangled commands? Well, if I do that
> in zsh, I get a message asking: “zsh: correct 'aptg-et' to
> 'apt-get' [nyae]? “. Magical, isn’t it? This autocorrect also
> applies to any parameters or paths or filenames you type.
> This one is a good setup guide:
More information about the ubuntu-users