linux 命令行下查看 html 和 pdf 文件方法

1:打开 html 文件

在linux 命令行 输入firefox --help 显示信息。

查看某个html 文件,举例如下,输入命令后 大概需要等3秒, firefox进程启动,浏览器界面显示

firefox test_report.html
Usage: firefox [ options ... ] [URL]
       where options include:

X11 options
  --display=DISPLAY  X display to use
  --sync             Make X calls synchronous
  --g-fatal-warnings Make all warnings fatal

Firefox options
  -h or --help       Print this message.
  -v or --version    Print Firefox version.
  -P <profile>       Start with <profile>.
  --profile <path>   Start with profile at <path>.
  --migration        Start with migration wizard.
  --ProfileManager   Start with ProfileManager.
  --no-remote        Do not accept or send remote commands; implies
                     --new-instance.
  --new-instance     Open new instance, not a new window in running instance.
  --UILocale <locale> Start with <locale> resources as UI Locale.
  --safe-mode        Disables extensions and themes for this session.
  -MOZ_LOG=<modules> Treated as MOZ_LOG=<modules> environment variable, overrides it.
  -MOZ_LOG_FILE=<file> Treated as MOZ_LOG_FILE=<file> environment variable, overrides it.
                     If MOZ_LOG_FILE is not specified as an argument or as an environment variable,
                     logging will be written to stdout.
  --headless         Run without a GUI.
  --browser          Open a browser window.
  --new-window <url> Open <url> in a new window.
  --new-tab <url>    Open <url> in a new tab.
  --private-window <url> Open <url> in a new private window.
  --preferences      Open Preferences dialog.
  --screenshot [<path>] Save screenshot to <path> or in working directory.
  --window-size width[,height] Width and optionally height of screenshot.
  --search <term>    Search <term> with your default search engine.
  --setDefaultBrowser Set this app as the default browser.
  --jsconsole        Open the Browser Console.
  --jsdebugger       Open the Browser Toolbox.
  --wait-for-jsdebugger Spin event loop until JS debugger connects.
                     Enables debugging (some) application startup code paths.
                     Only has an effect when `--jsdebugger` is also supplied.
  --devtools         Open DevTools on initial load.
  --start-debugger-server [ws:][ <port> | <path> ] Start the debugger server on
                     a TCP port or Unix domain socket path. Defaults to TCP port
                     6000. Use WebSocket protocol if ws: prefix is specified.
  --recording <file> Record drawing for a given URL.
  --recording-output <file> Specify destination file for a drawing recording.

      -g or --debug          Start within debugger
      -d or --debugger       Specify debugger to start with (eg, gdb or valgrind)
      -a or --debugger-args  Specify arguments for debugger

2: 打开 pdf 文件

命令输入 evince --help 显示如下。

evince xxx.pdf

 

Usage:
  evince [OPTION...] [FILE…] GNOME Document Viewer

Help Options:
  -h, --help                  Show help options
  --help-all                  Show all help options
  --help-gtk                  Show GTK+ Options

Application Options:
  -p, --page-label=PAGE       The page label of the document to display.
  -i, --page-index=NUMBER     The page number of the document to display.
  -n, --named-dest=DEST       Named destination to display.
  -f, --fullscreen            Run evince in fullscreen mode
  -s, --presentation          Run evince in presentation mode
  -w, --preview               Run evince as a previewer
  -l, --find=STRING           The word or phrase to find in the document
  --display=DISPLAY           X display to use

 

  • 6
    点赞
  • 25
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 要下载 Linux 命令行大全(即 Linux Command Line Cheat Sheet),您可以按照以下步骤操作: 1. 首先,打开您的互联网浏览器,例如谷歌浏览器、火狐浏览器等。 2. 在搜索引擎中输入 "Linux 命令行大全 昭茨下载"。 3. 检查搜索结果,找到可信任的网站或来源,确保您下载到正确的文件。 4. 点击网站上提供的下载链接。 5. 在弹出的文件下载对话框中,选择保存文件的位置。您可以选择将文件保存到您的计算机的任意文件夹中。 6. 点击“保存”按钮开始下载。请注意,下载时间取决于文件大小和您的网络速度。 7. 下载完成后,打开文件所在的文件夹。将文件解压缩到您希望存储的位置。 现在,您已经成功地下载了 Linux 命令行大全(Linux Command Line Cheat Sheet)。您可以随时打开该文件,查找和学习 Linux 命令行的相关知识。祝您学习愉快! ### 回答2: 要下载Linux命令行大全,你可以使用昭茨(Zsh)的包管理器来进行下载。首先,确保你已经在你的Linux系统上安装了昭茨。然后,按照以下步骤进行下载: 1. 打开终端,并输入以下命令以更新昭茨软件包索引: ``` sudo apt-get update ``` 2. 安装昭茨的软件包管理器(Zsh Package Manager,也称为ZPM): ``` sudo apt-get install zpm ``` 3. 安装昭茨命令行大全软件包: ``` zpm install linux-command-line-guide ``` 4. 等待下载和安装过程完成。 一旦下载和安装完成,你就可以在昭茨的命令行界面中使用Linux命令行大全了。可以在终端上输入以下命令来打开它: ``` linux-command-line-guide ``` 这个命令将会启动命令行大全的应用程序,你可以在其中查找和浏览各种Linux命令的详细文档和用法。 希望这个回答对你有帮助! ### 回答3: 要获取Linux命令行大全“昭茨”下载,可以通过以下步骤进行: 1. 打开您的网络浏览器,例如Chrome,Firefox或Safari。 2. 在搜索栏中输入“昭茨Linux命令行大全下载”等相关关键字,并点击搜索按钮。 3. 在搜索结果中找到可靠的下载源或网站。您可以选择常见的技术论坛、Linux发行版官方网站或专业的技术教育资源网站。 4. 单击所选链接,进入该网站。 5. 在该网站上,找到与您正在寻找的“昭茨Linux命令行大全”相对应的下载选项或页面。 6. 您可能会遇到不同的下载格式,例如PDF、EPUB或HTML。选择适合您需求的文件格式。 7. 单击下载按钮或链接,或跟随网站上的下载指示。 8. 一旦文件下载完成,您可以将其保存到您选择的位置或目录中。 9. 如果您下载的是PDF格式的文件,您可以使用适当的PDF阅读器打开它,并按需阅读其中的内容。 请注意,确保您下载的文件来源可信,以避免恶意软件或病毒的风险。最好从官方或可信赖的源获取软件,以确保文件的完整性和安全性。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值