Click to See Complete Forum and Search --> : open html using terminal?


kaykav
01-30-2009, 11:58 PM
good evening,
I came across a little problem: I downloaded a grub-doc in html format. Its in my /usr/share directory. I can open that html document using gui (open with firefox), but how would I open it using the command line? Im using Ubuntu 8,04. I remember a cmd like gtksudo or something similar. Nontheless how would I do that? thank you...Rich

happybunny
01-31-2009, 12:00 AM
apt-get install links2

:D

happybunny
01-31-2009, 12:01 AM
wait...what?

You have to open it as root? that's very queer.

chmod 755 /usr/share/doc.html


I like sux myself....as the normal user instead of sudo su - (or just su -) you $ sux which gives root access to your X that is currently running.

Then as root, just gnome-open /usr/share/doc.html or open firefox and browse to it.

ph34r
02-02-2009, 09:12 AM
links, elinks, lynx and others...

lugoteehalt
02-10-2009, 06:53 AM
$ less file.htmlwill do it. But you have to put something in .bashrc or the like to get less to do things like read compressed files etc., etc.. The something might be in the less documentation somewhere, can't remember.

kaykav
02-11-2009, 12:04 AM
thank you, Ill try that....Rich