Menu

14 July 2010

[tip] how to view man pages in pdf format #bash #hack

Here is a small trick.

Open your bashrc file

gedit ~/.bashrc

add this function at the end file

function manpdf { man -t $1 | ps2pdf - | okular - ; }

save and exit.

Now close the terminal.

Open terminal again

Now you can view man pages in pdf format using command like this , type this in terminal


$ manpdf ffmpeg

I have attached the screenshot 


PS: inorder to work it correctly you need to install ps2pdf and  okular
I have tried for evince but it failed to load content. may be you can provide the correct syntax.

Posted via email from LUG@IITD Community Blog

Post a Comment