How to open a pdf file from terminal?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to open a pdf file from terminal?
# 1  
Old 01-16-2010
Java How to open a pdf file from terminal?

how to open a .pdf file from terminal not using gpdf

I work on fedora 12 and default application assigned for viewing the pdf files is document-viewer
# 2  
Old 01-16-2010
u can invoke the pdf viewer from terminal with the file name as argument for example if its arcobat reader then ...

acroread test.pdf

shall open acrobat reader with test.pdf opened ....
# 3  
Old 01-17-2010
Bug thanks

thanks buddy for posting that thread.

but I am afraid that i dont have acrobat reader in my system.
In that case can u plz suggest me how to know the CLI command for any application in linux.............


I am now using document viewer for opening pdf files......probably thats an application in office.org.....
# 4  
Old 01-17-2010
Hi.

For:
Code:
OS, ker|rel, machine: Linux, 2.6.31.6-166.fc12.i686.PAE, i686
Distribution        : Fedora release 12 (Constantine)

To find the utilities that you have installed that might deal with pdf files, use:
Code:
man -k pdf

To see what you have installed and what is available in the repositories:
Code:
yum list '*pdf*'

To see a detailed description of the items from the list:
Code:
yum info '*pdf*'

To install something, say xpdf:
Code:
(become root)
yum install xpdf

which then makes available:
Code:
xpdf - Portable Document Format (PDF) file viewer for X (version 3.02)

which can be used as, for example:
Code:
xpdf /usr/share/doc/bzip2-devel-1.0.5/manual.pdf

More information is found in man yum and other man pages.

Best wishes ... cheers, drl
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Pssh open terminal?

Hi folks. I'm using pssh to run commands on a cluster, (pis/Raspian/Jessie) but I'm opening a app that runs and runs and runs. It's quite helpful to vnc to a machine to make sure it's still running ok now and then, but they're basically left alone. Of course when pssh runs a command it... (2 Replies)
Discussion started by: MuntyScrunt
2 Replies

2. Shell Programming and Scripting

When trying to open file Message:-Terminal too wide?

Hi, I am trying to open small size file only in vi editor on solaris or Linux machine but it giving message "Terminal too wide" and then I have to come out. As shown below:- -rwxr-x--- 1 rkycadm rkycprd 2445 Sep 12 04:06 $ vi file.txt Terminal too wide :q! ----------... (2 Replies)
Discussion started by: RahulJoshi
2 Replies

3. Red Hat

Alias to Open new terminal?

Hello everyone. I want to create an alias of vi, so that everytime I use vi to edit something, it will open up a new terminal session, with the vi file that I want to edit. So for example if I enter: sudo vi /etc/bashrc This will open up a brand new terminal window, with the /etc/bashrc file... (1 Reply)
Discussion started by: Lost in Cyberia
1 Replies

4. Fedora

How to use terminal while keeping a program open?

hi all, I open Matlab program from terminal. However, when I go back to terminal I can't do anything in it , only until Matlab is closed. Can someone please advise me on how I can oversome this problem ? thanks peter (2 Replies)
Discussion started by: peter_071
2 Replies

5. Programming

How can this jar file open pdf ??

OKay so my question is that how does this jar file convert something in there and show pdf when open it? I don't get how it works. Can someone explain to me. I have a link below, in there will be a file call Tools, and please open the file called "PQ10-sample" it will automaticly open up a pdf as... (11 Replies)
Discussion started by: tonyduong15
11 Replies

6. Red Hat

How to open terminal automatically.

hi, I am using red hat .I want that when ever the user login in GUI interface the terminal windows automatically open and then the user want to logout it 1st close the terminal and then login. There is a file in #ls -a i.e .bashrc and .bash_logout I does not know how to add my... (0 Replies)
Discussion started by: mypass
0 Replies

7. Solaris

Open Terminal Don't work

Hi, I installed solaris 10 x86 on my local system. it was working fine. today when i started the system, it started up without any problem. when i tried to open the terminal it didn't open any terminal. Plz help me (0 Replies)
Discussion started by: malikshahid85
0 Replies

8. Programming

Linux C - how to open a pdf file with default reader

sorry if i repost this... hi.. i want to ask how to open pdf files using C in Linux in Windows, i just use this code: ShellExecute(GetDesktopWindow(), "open", "D:\\Folder\\File.pdf", NULL, NULL, SW_SHOWNORMAL); thanks for advance... (3 Replies)
Discussion started by: sunardo
3 Replies

9. UNIX for Dummies Questions & Answers

chm and pdf help in terminal (rename)

i have a cd of pdf and chm documents that i transfered from my windows xp box. i transfered the files to my linux box (ubuntu hardy). unfortunately, i used to be a windows GUI only user so the use of spaces and "( )" and underscores. now that i use linux, ive been using CLI for using and... (3 Replies)
Discussion started by: Texasone
3 Replies
Login or Register to Ask a Question