在linux操作系统下总是打开浏览器去检索英语单词,翻译和验错很不方便。
本文将介绍如何在fedora(centos同样适用哦)下安装相应的包,在命令行查询单词,和进行中英文互译,以及检查拼写错误。
1. 安装dict和使用dict查询单词
dict是一个Perl客户端,基于DICT( Dictionary Server Protocol)协议,用来链接dict服务器,具体可见https://linux.die.net/man/1/dict
安装

使用

2. 安装google translator CLI和中英文翻译
安装

安装脚本可从我的github上下载使用:https://github.com/testcara/install_scripts/blob/master/install_google_translator.sh
使用

trans -R 可获取所有trans支持的语言,如上图来进行使用
3. 安装aspell及其aspell-en,并进行使用
安装aspell

安装aspell-en

使用 aspell check file_name

网友评论