linux中自带的所有命

本文介绍如何在Linux终端使用W3M浏览器浏览网页,包括安装、基本操作、图片显示、标签页浏览、Gmail查看等功能,并提供详细的操作步骤和截图演示。
在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插件可以编译安装,但终端下的网页浏览器有必要苛求这么多吗?



【电能质量扰动】基于ML和DWT的电能质量扰动分类方法研究(Matlab实现)内容概要:本文研究了一种基于机器学习(ML)和离散小波变换(DWT)的电能质量扰动分类方法,并提供了Matlab实现方案。首先利用DWT对电能质量信号进行多尺度分解,提取信号的时频域特征,有效捕捉电压暂降、暂升、中断、谐波、闪变等常见扰动的关键信息;随后结合机器学习分类器(如SVM、BP神经网络等)对提取的特征进行训练与分类,实现对不同类型扰动的自动识别与准确区分。该方法充分发挥DWT在信号去噪与特征提取方面的优势,结合ML强大的模式识别能力,提升了分类精度与鲁棒性,具有较强的实用价值。; 适合人群:电气工程、自动化、电力系统及其自动化等相关专业的研究生、科研人员及从事电能质量监测与分析的工程技术人员;具备一定的信号处理基础和Matlab编程能力者更佳。; 使用场景及目标:①应用于智能电网中的电能质量在线监测系统,实现扰动类型的自动识别;②作为高校或科研机构在信号处理、模式识别、电力系统分析等课程的教学案例或科研实验平台;③目标是提高电能质量扰动分类的准确性与效率,为后续的电能治理与设备保护提供决策依据。; 阅读建议:建议读者结合Matlab代码深入理解DWT的实现过程与特征提取步骤,重点关注小波基选择、分解层数设定及特征向量构造对分类性能的影响,并尝试对比不同机器学习模型的分类效果,以全面掌握该方法的核心技术要点。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值