Friday, May 3, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 3329  / 2 Years ago, sat, may 28, 2022, 10:11:00

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?


More From » command-line

 Answers
7

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.


[#33676] Sunday, May 29, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
chilgirlguid

Total Points: 123
Total Questions: 114
Total Answers: 121

Location: Macau
Member since Mon, Nov 16, 2020
4 Years ago
;