Command not found helpers

Asked by Tong Sun on 2011-11-14

hi,

Which package gives the following info when a command is not found in path?

Command 'ifconfig' is available in '/sbin/ifconfig'
The command could not be located because '/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
ifconfig: command not found

Which package gives the following info when a command is not found in installed packages?

No command 'xxx' found, did you mean
 . . .
 Command 'cc' from package 'tcc' (universe)
 Command 'cc' from package 'clang' (universe)
 Command 'cc' from package 'gcc' (main)
 Command 'cc' from package 'pentium-builder' (universe)
 . . .

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu bash Edit question
Assignee:
No assignee Edit question
Solved by:
mycae
Solved:
2011-11-16
Last query:
2011-11-16
Last reply:
2011-11-15
Tong Sun (suntong001) said : #2

thanks, how about the 1st question?

Best mycae (mycae) said : #3

as far as I was aware, both were handled by the command-not-found package. Upon removing command not found and command-not-found-data, this functionality disappears.

Tong Sun (suntong001) said : #4

Thanks mycae, that solved my question.