Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 .

share|improve this question
up vote 4 down vote accepted

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.

share|improve this answer
can you explain the command ? – Foolish Sep 19 '10 at 2:27
@Foolish: See my edit. – Dennis Williamson Sep 19 '10 at 3:01
Thanks very much – Foolish Sep 19 '10 at 3:33
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.

share|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 posting your answer, you agree to the privacy policy and terms of service.

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