Bug 1172306 - Show suggestion to use apropos by cnf
Summary: Show suggestion to use apropos by cnf
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: All All
: P5 - None : Enhancement (vote)
Target Milestone: ---
Assignee: Bernhard Wiedemann
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-30 11:31 UTC by Sławomir Lach
Modified: 2020-12-22 14:30 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sławomir Lach 2020-05-30 11:31:01 UTC
Some users could don't known many terminal commands. I always worked with apropos/man -k. I think bash could show information about one of this command on ran or cnf could suggest to use one of this command.
Comment 1 Bernhard Wiedemann 2020-12-22 14:19:18 UTC
can you give an example how such interaction would work?

like this?
cnf xxx
 xxx: command not found                    
calls automatically apropos xxx
perlcn (1)           - XXXX Perl XX
...


Would it also do it for found commands? Probably too noisy.
or just suggest "you can also try apropos xxx"
Comment 2 Sławomir Lach 2020-12-22 14:30:00 UTC
(In reply to Bernhard Wiedemann from comment #1)
> can you give an example how such interaction would work?
> 
> like this?
> cnf xxx
>  xxx: command not found                    
> calls automatically apropos xxx
> perlcn (1)           - XXXX Perl XX
> ...

That's good.
> 
> 
> Would it also do it for found commands? Probably too noisy.
> or just suggest "you can also try apropos xxx"


1. Bash could show info on login
To discover command prompt, use apropos.

2. User type install application 
Bash instruct user to use cnf install
User type cnf install
cnf outputs:
To install install type sudo zypper install install or use apropos install to see alternatives
or cnf outputs:
install: command not found. Type apropos install to see possibilities.