Sunday, May 5, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 56221  / 1 Year ago, tue, april 4, 2023, 11:19:00

I am beginning to learn and love ubuntu. Is there any way to open files like .pdf, .jpeg, .odt, .docx etc. using command line?



For instance, I have a pdf named: 9949107741MathFormulas.pdf in the following directory:



jitendra@jitendra:~/Downloads/Math.Formulas.and.Tables.8.Retail$


when I go to above directory type 9949107741MathFormulas.pdf to open it, I get the message:



9949107741MathFormulas.pdf: command not found


Please advise, how can this task be accomplished?


More From » command-line

 Answers
6

You fist need to ask the application to open it. For pdf, you can call "evince".



Example command:



evince example.pdf

[#30246] Wednesday, April 5, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rieency

Total Points: 299
Total Questions: 116
Total Answers: 111

Location: Wales
Member since Tue, Dec 14, 2021
2 Years ago
rieency questions
Wed, Aug 25, 21, 15:17, 3 Years ago
Wed, Jun 23, 21, 04:37, 3 Years ago
Fri, Sep 30, 22, 12:07, 2 Years ago
Thu, Feb 24, 22, 00:50, 2 Years ago
Mon, Mar 28, 22, 13:28, 2 Years ago
;