Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-18-2006, 01:42 PM
|
#1
|
Member
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204
Rep:
|
opening an html file from command line
hi
how do i open a file with a .html/pdf extn from the command line?
thanks
ashlesha.
|
|
|
07-18-2006, 01:56 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
open? you canv iew an html page just with any text editor... if you wish to view the resulting page in a console then use a text browser like links. as for pdf... doubt there's anythign to do this.
|
|
|
07-18-2006, 01:59 PM
|
#3
|
Member
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204
Original Poster
Rep:
|
ok what i mean is..how would i open an html page in firefox from the command line?
i opened it in vi and it shows me the code..i want to see the resulting page...
same with pdf..how do i view the pdf file in adobe acrobat reader that i ve got on my system?
thanks..
ashlesha.
|
|
|
07-18-2006, 02:00 PM
|
#4
|
Senior Member
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847
Rep:
|
try xpdf for the pdf file should do the trick. otherwise type which will give you a list of all the programs that deal with pdfs (this may throw out a lot of programs - read the comments from the output to determine if the program does what you want it to.
hope this helps.
|
|
|
07-18-2006, 02:03 PM
|
#5
|
Senior Member
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847
Rep:
|
sorry, bit slow on the typing there.
to open the html page in firefox from the commandline should work
|
|
|
07-18-2006, 02:14 PM
|
#6
|
LQ Newbie
Registered: Jul 2006
Location: Arlington,Va
Distribution: Fedora 5, Red Hat, Knoppix
Posts: 7
Rep:
|
if you are running from the command line only and not part of a script you should try putting a & at the end so that you have the use of your console back.
firefox <filename>&
|
|
|
10-01-2017, 07:05 PM
|
#7
|
LQ Newbie
Registered: Oct 2017
Posts: 1
Rep:
|
Command line opening of an html file in google chrome
Helpful thread - thanks guys. In case it isn't obvious, for google chrome, use ... google-chrome <filename>&
|
|
|
All times are GMT -5. The time now is 10:52 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|