或者到
/bin
/sbin
/usr/bin
/usr/sbin
/usr/local/bin
/usr/local/sbin
等目录里面去看看。
-----------------------------------------------------------------------------------------------------
W3M-linux终端下的网页浏览器!
How to Browse From the Linux Terminal With W3M
W3M is a terminal web browser for Linux.It’s got a few tricks up its sleeve, including support for images, tabs, tables, frames and other features not usually included with terminal web browsers.
W3M是linux下的终端网页浏览器,支持图片显示,支持多标签页,可以显示表格、框架,一般的终端浏览器可没有这些功能哦,比如lynx。
If you’ve used Linux for a while, you probably remember using a terminal browser to Google up a solution for your hardware when the X server refused to load. Modern X servers have advanced far beyond this, but W3M and other terminal browsers can still be useful.
如果桌面环境崩溃了,只能在终端下的浏览器google解决方法了。当然,有桌面环境下的浏览器功能更强大,但终端下的浏览器也是很有用处的。
Installing W3M(安装)
sudo apt-get install w3m w3m-img
大部分linux发行版默认是不包含W3M.所以自己安装吧,ubuntu用上面的命令就行,w3m-img可以显示图片。
Basic Browsing(基本浏览操作)
w3m命令后面可以接几个命令选项,但都不是必须的,出来一个:网址,比如打开google:w3m google.com
You can use the arrow keys to move the cursor around or click at a desired location to move the cursor there. If you want to type in a text box, select the text box with your cursor and press Enter before typing your text. W3M treats your keystrokes as commands if you just start typing.
Load a hyperlink by selecting it with your cursor and pressing Enter. You don’t have to select hyperlinks manually — press the Tab key to position your cursor over the next hyperlink on the page.
Shift-B will take you back a page. If you want to load a different URL, press Shift-U and you’ll get an URL prompt. Press Shift-H to view the help page if you want to see a more complete list of keyboard shortcuts.
Shift-b是返回,Shift-u打开地址栏,(注:ctrl-u可以清除地址栏的内容),Shift-h是帮助
Images in the Terminal(终端下显示图片)
W3M supports images, so where are they? Well, terminals like GNOME Terminal and KDE’s Konsole can’t display W3M’s images. Other terminals, such as Xterm, can. W3M will also display images if you’re running it in a framebuffer console, so you don’t need an X server running to take advantage of this feature.
上图就是用w3m浏览本论坛的显示效果,很完美吧!!
Another feature that doesn’t work in GNOME Terminal or Konsole is W3M’s right-click menu.
xterm可以显示右键菜单,这个是真的,
Browser Tabs(标签页浏览)
How did we ever live without tabs? They’re an essential feature for desktop web browsers. W3M includes tabs, too. Just press Shift-T to open a new tab.
Shift-t就可以打开标签页了。这个可是桌面上的网页浏览器必备功能哦,没想到终端下也可以吧!
You can switch between tabs by clicking them, but we’re trying to be terminal ninjas here. Use the { and } keys to switch between tabs without touching your mouse (that’s Shift-[ and Shift-]).
Gmail in the Terminal
W3M isn’t stuck in the past, like Lynx (another web browser for the terminal) is. It can render tables, frames and even has support for Gmail’s basic HTML interface.
You’d probably feel more comfortable accessing Gmail with an IMAP client from your terminal, but hey — it works.
More Documentation
In addition to pressing Shift-H to view W3M’s help page, you can view the full manual on W3M’s website. The manual lists all of W3M’s command-line switches and key bindings.
其他用法和帮助请移步官网!W3M still doesn’t compare with desktop browsers — notably, it doesn’t support JavaScript. There’s an experimental w3m-js extension you can compile and install yourself, but I wouldn’t rely too much on that. Then again, do you really want JavaScript in a terminal browser?
-------------------------------------------
w3m这样的终端网页浏览器是不能跟桌面网页浏览器相比的,至少它连javascript都不支持,虽然有试验性质的w3m-js插件可以编译安装,但终端下的网页浏览器有必要苛求这么多吗?