If it doesn't already exist, create the file .bash_aliases in your home folder. Add the following line to the file:
Source the file into your environment so you can use the new command without logging out and back in:
The procedure calls khelpcenter and opens the man page viewer to the argument you supply; for example:
The 2>/dev/null bit just prevents the usual "qdbus misbehavior" warnings that we often see. It keeps your console window neat.
Now, when you're buried in a console window and want to check a man page, you can type kman manpage-name to open the page in a GUI window rather than opening a second console window. Furthermore, you can click the hyperlinks to navigate throughout the man page collection. Enjoy!
Code:
kman () { khelpcenter "man:$@" 2>/dev/null ;}
Code:
source ~/.bash_aliases
Code:
kman tune2fs
Now, when you're buried in a console window and want to check a man page, you can type kman manpage-name to open the page in a GUI window rather than opening a second console window. Furthermore, you can click the hyperlinks to navigate throughout the man page collection. Enjoy!
Comment