linux终端打开PDF&Html

最近常在linux下写代码,项目帮助手册都是pdf或者html。都说用Vim写代码都不用鼠标,但查看帮助手册不得不像windows那样进入文件系统,找到相应目录然后双击打开,十分不方便。

事实上linux强大的命令系统提供了解决上述麻烦的方案,双手都不需要离开键盘,直接在终端下操作。

打开html文件

firefox命令。在终端输入firefox -h 可查看相关用法和参数。

Usage: firefox-bin [ options ... ] [URL]
       where options include:

X11 options
	--display=DISPLAY		X display to use
	--sync		Make X calls synchronous
	--no-xshm		Don't use X shared memory extension
	--xim-preedit=STYLE
	--xim-status=STYLE
	--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>.
	-migration		Start with migration wizard.
	-ProfileManager		Start with ProfileManager.
	-no-remote		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.
  -jsconsole           Open the Error console.
  -browser            Open a browser window.
  -private            Enable private browsing mode.
  -setDefaultBrowser   Set this app as the default browser.

        -g or --debug		Start within /usr/bin/gdb (Must be first)
一般情况下使用只需firefox URL即可打开相应的html了。

打开PDF文件

使用evince命令。在linux终端输入evince --help查看帮助文档。

用法:
  evince [选项...] [文件...] GNOME 文档查看器

帮助选项:
  -h, --help                      显示帮助选项
  --help-all                      显示全部帮助选项
  --help-sm-client                Show session management options
  --help-gtk                      显示 GTK+ 选项

应用程序选项:
  -p, --page-label=页面           要显示的文档的页面。
  -f, --fullscreen                以全屏模式运行 evince
  -s, --presentation              以放映模式运行 evince
  -w, --preview                   以预览程序模式运行 evince
  -l, --find=字符串               文档中待查找的单词或短语
  --display=显示                  要使用的 X 显示
实际使用只需evince xxx.pdf即可。








评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值