LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-18-2006, 01:42 PM   #1
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Rep: Reputation: 30
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.
 
Old 07-18-2006, 01:56 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 07-18-2006, 01:59 PM   #3
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
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.
 
Old 07-18-2006, 02:00 PM   #4
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
try xpdf for the pdf file
Code:
xpdf <filename>
should do the trick. otherwise type
Code:
apropos pdf
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.
 
Old 07-18-2006, 02:03 PM   #5
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
sorry, bit slow on the typing there.

to open the html page in firefox from the commandline
Code:
firefox <filename>
should work
 
Old 07-18-2006, 02:14 PM   #6
rushi
LQ Newbie
 
Registered: Jul 2006
Location: Arlington,Va
Distribution: Fedora 5, Red Hat, Knoppix
Posts: 7

Rep: Reputation: 0
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>&
 
Old 10-01-2017, 07:05 PM   #7
ThomIves
LQ Newbie
 
Registered: Oct 2017
Posts: 1

Rep: Reputation: Disabled
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>&
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Send HTML mail via command line interface xlash Linux - General 2 11-02-2005 02:02 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 08:45 PM
print files in PDF or html format from the linux command line IBKnobel Linux - Software 3 07-12-2004 10:29 PM
How to send an mime/html-email by command line ? fluppi Linux - Networking 0 07-08-2004 10:26 AM
Opening an X program from ssh command line petway56 Linux - General 2 02-14-2003 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration