Command not found helpers

Asked by Tong Sun

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:
Last query:
Last reply:
Revision history for this message
mycae (mycae) said :
#1
Revision history for this message
Tong Sun (suntong001) said :
#2

thanks, how about the 1st question?

Revision history for this message
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.

Revision history for this message
Tong Sun (suntong001) said :
#4

Thanks mycae, that solved my question.