当前位置:   article > 正文

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

linux cmd html

1:打开 html 文件

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

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

firefox test_report.html
  1. Usage: firefox [ options ... ] [URL]
  2. where options include:
  3. X11 options
  4. --display=DISPLAY X display to use
  5. --sync Make X calls synchronous
  6. --g-fatal-warnings Make all warnings fatal
  7. Firefox options
  8. -h or --help Print this message.
  9. -v or --version Print Firefox version.
  10. -P <profile> Start with <profile>.
  11. --profile <path> Start with profile at <path>.
  12. --migration Start with migration wizard.
  13. --ProfileManager Start with ProfileManager.
  14. --no-remote Do not accept or send remote commands; implies
  15. --new-instance.
  16. --new-instance Open new instance, not a new window in running instance.
  17. --UILocale <locale> Start with <locale> resources as UI Locale.
  18. --safe-mode Disables extensions and themes for this session.
  19. -MOZ_LOG=<modules> Treated as MOZ_LOG=<modules> environment variable, overrides it.
  20. -MOZ_LOG_FILE=<file> Treated as MOZ_LOG_FILE=<file> environment variable, overrides it.
  21. If MOZ_LOG_FILE is not specified as an argument or as an environment variable,
  22. logging will be written to stdout.
  23. --headless Run without a GUI.
  24. --browser Open a browser window.
  25. --new-window <url> Open <url> in a new window.
  26. --new-tab <url> Open <url> in a new tab.
  27. --private-window <url> Open <url> in a new private window.
  28. --preferences Open Preferences dialog.
  29. --screenshot [<path>] Save screenshot to <path> or in working directory.
  30. --window-size width[,height] Width and optionally height of screenshot.
  31. --search <term> Search <term> with your default search engine.
  32. --setDefaultBrowser Set this app as the default browser.
  33. --jsconsole Open the Browser Console.
  34. --jsdebugger Open the Browser Toolbox.
  35. --wait-for-jsdebugger Spin event loop until JS debugger connects.
  36. Enables debugging (some) application startup code paths.
  37. Only has an effect when `--jsdebugger` is also supplied.
  38. --devtools Open DevTools on initial load.
  39. --start-debugger-server [ws:][ <port> | <path> ] Start the debugger server on
  40. a TCP port or Unix domain socket path. Defaults to TCP port
  41. 6000. Use WebSocket protocol if ws: prefix is specified.
  42. --recording <file> Record drawing for a given URL.
  43. --recording-output <file> Specify destination file for a drawing recording.
  44. -g or --debug Start within debugger
  45. -d or --debugger Specify debugger to start with (eg, gdb or valgrind)
  46. -a or --debugger-args Specify arguments for debugger

2: 打开 pdf 文件

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

evince xxx.pdf

 

  1. Usage:
  2. evince [OPTION...] [FILE…] GNOME Document Viewer
  3. Help Options:
  4. -h, --help Show help options
  5. --help-all Show all help options
  6. --help-gtk Show GTK+ Options
  7. Application Options:
  8. -p, --page-label=PAGE The page label of the document to display.
  9. -i, --page-index=NUMBER The page number of the document to display.
  10. -n, --named-dest=DEST Named destination to display.
  11. -f, --fullscreen Run evince in fullscreen mode
  12. -s, --presentation Run evince in presentation mode
  13. -w, --preview Run evince as a previewer
  14. -l, --find=STRING The word or phrase to find in the document
  15. --display=DISPLAY X display to use

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/449691
推荐阅读
相关标签
  

闽ICP备14008679号