Commands for opening PDF files and HTML files from the command line under Linux
[Date: 2012-06-18] |
Source: Linux Community Author: hipercomer |
[Font: big medium Small] |
If you often work at a Linux terminal and need to look at some documents at some point (such as PDFs or HTML documents), it is often necessary to switch to the file system to open the files. In fact, you just need to knock a command to open the file, there is absolutely no need to leave the terminal.
For example, when you open an HTML file, you can use the Firefox command. Firefox is a shell script-written command that sets the environment according to the parameters and prepares for starting Firefox-bin.
For example, open the LINUXIDC Web site:
Firefox http://www.linuxidc.com
Also open the local file, just pass in a path to a local file.
When you open a PDF, the more generic command under Linux is the evince command.
For example, when opening the current directory of the Hdfs_design.pdf file: evince hdfs_design.pdf