Any way to list similar commands?

Posted by Septagram on Ask Ubuntu See other posts from Ask Ubuntu or by Septagram
Published on 2012-10-08T02:03:06Z Indexed on 2012/10/08 3:48 UTC
Read the original article Hit count: 231

Filed under:
|
|
|

When you write the command name wrong, bash often does this:

septi@norbert:~$ good
No command 'good' found, did you mean:
 Command 'gold' from package 'binutils' (main)
 Command 'gmod' from package 'gmod' (universe)
 Command 'goo' from package 'goo' (universe)
 Command 'god' from package 'god' (universe)
 Command 'geod' from package 'proj-bin' (universe)
 Command 'gord' from package 'scotch' (universe)
good: command not found

Or sometimes it does this:

septi@norbert:~$ nftp
No command 'nftp' found, but there are 23 similar ones
nftp: command not found

Is there any way to ask bash to show these 23 similar commands for me? And, is there a way to show similar commands, including those that aren't yet installed, instead of running the application, ftp for example?

© Ask Ubuntu or respective owner

Related posts about bash

Related posts about packages