linux中自带的所有命

在terminal 中连续按两下tab键,就是键盘大写键上面的那个,就可以了。是按字幕顺序排列的。

或者到 

/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(安装)


W3M isn’t included by default on most Linux distributions. You’ll want to install the main w3m package and the w3m-img package if you want inline image support. Use the following command on Ubuntu:

sudo apt-get install w3m w3m-img

大部分linux发行版默认是不包含W3M.所以自己安装吧,ubuntu用上面的命令就行,w3m-img可以显示图片。

Basic Browsing(基本浏览操作)


W3M has quite a few command-line options, but none are mandatory. The only thing you need to specify is a web page address. Want to bring up Google? Just use the w3m google.com command.




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.


用方向键移动或者点击鼠标来移动光标,要在文本框输入要先定位到文本框然后按Enter(回车键)才开始输入,因为一般的按键会被认为是命令





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.


打开链接也是如此,先定位到链接然后回车,也可以用Tab键在链接间跳转。





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可以显示图片,虽然上面原文说GNOME和KDE下的终端是不能显示图片的,但本人用12.04版本的ubuntu完美显示图片啊,根本不需要装xterm,不过我也尝试安装了xterm,照样显示图片无压力,但明显xterm的字体很难看,而且很多字不能显示,到是ubuntu的终端显示得非常完美!中文字体、图片都完美!!!




上图就是用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.


lynx老了,w3m却没吃老本,开头就说了w3m支持显示图片、表格、框架,甚至如下图所示,Gmail的基本版html都可以显示!




You’d probably feel more comfortable accessing Gmail with an IMAP client from your terminal, but hey — it works.


也许你更喜欢用邮件客户端来收发gmail,但我要说的是,在终端下你也可以做到!

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插件可以编译安装,但终端下的网页浏览器有必要苛求这么多吗?



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值