it's hard to read ubuntu help, I hope I can read help in gedit editor. is it possible to do the following ? man ls and open in gedit .


You could use this function to get something similar:

man () { yelp "man:$@"; }

then man ls will open the man page in the help viewer.

gnome-help, which provides help in Gnome applications, is symlinked to yelp. The function above acts in place of the man program and calls yelp using the man: URI with the name of the command you provide as the argument. If you type yelp man:ls it will do the same thing as that function does if you provide "ls" as its argument.

| improve this answer | |
  • can you explain the command ? – Foolish Sep 19 '10 at 2:27
  • @Foolish: See my edit. – Paused until further notice. Sep 19 '10 at 3:01
  • To see a page from a particular section, use something like yelp 'man:stat(2)' – belacqua May 16 '14 at 21:54

One possibility:

file=$(mktemp) && man ls > $file && gedit $file

This means 1) create a temporary file and assign its name to the variable "file", 2) dump the contents of "man ls" into it, and 3) open it in gedit.

It could also be done with the gedit external tools plugin, but the above is probably as easy as anything.

| improve this answer | |
  • When I run it, this inserts screen formatting characters (backspaces etc) into the file shown in gedit. There's probably some man/troff option to turn them off. – poolie Apr 19 '11 at 23:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.