1

OS version: Ubuntu 12.04

I wrote veditor in my terminal and got the following message:

No command 'veditor' found, but there are 39 similar ones

My question is how can I view those 39 similar commands?

2

3 Answers 3

0

Just to be clear what kind of editor did you mean by veditor?

Looks to me like a typo. If you type in editor a predefined text editor will start. In my case itś Nano.

Other editors you can use are gedit, vim, vi, etc.

Even man -k veditor doesn't even show suggenstions.

1
  • No No, you did not get my point. I know there is no such command as veditor and i am not even interested in running an editor, i know how to do that. what i am interested is in those <b> 39 similar ones </b> . is there a way to have a look at those commands?
    – kba1541
    Feb 3, 2013 at 7:04
0

for example if you know only starting of the command like vi then type vi and press tab then you will get the commands which starts from the name vi.

1
  • This is not always correct. By using the tab key- you show the possible solutions to any command starting on "vi-". That means, it might not be similar, but actually it will be exactly those two ++ more.
    – denNorske
    Apr 23, 2013 at 19:49
0

The command-not-found script doesn't seem to have any way to do this by default.

Here's a modified version that takes a --all option.

https://gist.github.com/kaqualls/5447454 (click the permalink button in the top right to download the file)

python ./command-not-found --all veditor

This prints a list of every package that provides the 'editor' command.

The algorithm used to check for misspelled commands is very simple, so I doubt this will ever be helpful.

This page pointed me toward the right script: http://linuxers.org/article/how-ubuntus-command-suggestion-feature-works

You must log in to answer this question.

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