LinuxQuestions.org
Visit Jeremy's Blog.
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, 12: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, 12:56 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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, 12: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, 01: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, 01: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, 01: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>&
 
  


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 01:02 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM
print files in PDF or html format from the linux command line IBKnobel Linux - Software 3 07-12-2004 09:29 PM
How to send an mime/html-email by command line ? fluppi Linux - Networking 0 07-08-2004 09:26 AM
Opening an X program from ssh command line petway56 Linux - General 2 02-14-2003 04:33 PM


All times are GMT -5. The time now is 02:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration