Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I know about the "clear" command but I accidentally typed "cls" instead. I then received a message that said.

No command 'cls' found, but there are 18 similar ones

so what is the significance of telling me there are 18 similar commands and is there a way to see the commands that terminal mentioned?

share|improve this question
1  
You should look at Oh My Zsh! –  nikhil Dec 14 '12 at 18:36
    
@AndyFriese you are correct it is a duplicate. I didn't see that question. The top answer for that question answers my questions sort of. –  Kelbizzle Dec 14 '12 at 21:29
add comment

marked as duplicate by Eliah Kagan, Eric Carvalho, RolandiXor May 12 '13 at 3:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

up vote 2 down vote accepted

Bash gives suggestions when unknown commands are entered.

$ apr
No command 'apr' found, did you mean:
 Command 'arp' from package 'net-tools' (main)
 Command 'apm' from package 'apmd' (main)
 Command 'apf' from package 'apf-firewall' (universe)
 Command 'apg' from package 'apg' (main)
 Command 'pr' from package 'coreutils' (main)
 Command 'gpr' from package 'gpr' (universe)
 Command 'ar' from package 'binutils' (main)
 Command 'ar' from package 'binutils-multiarch' (universe)
 Command 'par' from package 'par' (universe)
 Command 'lpr' from package 'lpr' (universe)
 Command 'lpr' from package 'lprng' (universe)
 Command 'lpr' from package 'gnuspool' (universe)
 Command 'lpr' from package 'cups-bsd' (main)
apr: command not found

If there are two many possibilities then bash just tells how many there are. Indeed, not very useful.

share|improve this answer
add comment

You could try something like

man -k '^cl'

This would list all the man pages that start with 'cl'. Not a direct match to your question but gives you other commands like clear, clearenv, clock etc.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.