1

I don't remember a UNIX command that allowed you to remember how to write correctly a command.

Let's supose that the command that I say is called MISPELL

So running MISPELL will produce the following output:

$ MISPELL chlmod 

Output:

chmod
3
  • 1
    "don't" or "do"?
    – user14755
    Nov 11, 2016 at 4:11
  • what is your OS ? if you use linux, then goto bash shell and type 1 or 2 letters and hit tab key two times. It will show all the executable files matches with your letters
    – Kamaraj
    Nov 11, 2016 at 4:23
  • [t]csh will do this for you automatically
    – user14755
    Nov 11, 2016 at 5:17

1 Answer 1

5

For Ubuntu distros, install command-not-found:

apt install command-not-found

Once installed and enabled, it runs in the current bash shell, (more specifically any bash shell started after installation). Here's the output if the user types a lone "chlmod":

No command 'chlmod' found, did you mean:
 Command 'chmod' from package 'coreutils' (main)
chlmod: command not found
1
  • 2
    +1 Arch Linux info here for bash and zsh.
    – Sparhawk
    Nov 11, 2016 at 5:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .