最快捷的Linux命令查询工具 |
您所在的位置:网站首页 › linux命令在线查询 › 最快捷的Linux命令查询工具 |
不管你是Linux萌新用户或是老司机,应用命令行总会碰到不懂的问题。 碰到疑问要么去论坛询问、google搜索,要么查自带命令手册(RTFM),历程耗时,后果也不直观。
一名印度应用工程师针对这一困难,开发了一个方便的命令行操纵指南Q&A工具howdoi。 直接在终端输入「how do i +你要问的疑问」,这里的疑问不再是复杂的命令选项,而是一般的天然说话,和你去google搜索没甚么两样。 而后howdoi马上就能回笼细致操纵教程,完成了用日常对话的模式来盘问Linux交互命令。
![]()
这么好用的工具安装起来也不复杂。 安装步骤 安装howdoi只要两步,还需要PHP 5.0以上版本。 运行下方命令即可完成安装: $ mkdir -p ~/bin && wget https://raw.githubusercontent.com/san-kumar/howdoi/master/howdoi -O ~/bin/howdoi && chmod +x ~/bin/howdoi$ sudo ln -s ~/bin/howdoi /usr/local/bin/howdoi 在使用时,有几个实用的命令字符: howdoi [-n -v -h] — question 其中,-n 代表返回的解答数量(默认为1),-v表示返回完整解答(默认情况只返回相关代码),-h为显示此问题的帮助信息。 操作实例快速查询教程 输入问题「如何解压bz2文件?」: $ howdoi extract a bz2 file 返回结果: -j, —bzip2 filter the archive through bzip2 tar -xvjf enginsxt.tar.bz2Source:https://askubuntu.com/questions/707861/how-to-extract-tar-bz2 howdoi不仅给出了命令的使用方法,还给出了这个问题的来源网址。 详细教程查询: 输入问题「如何把一个程序添加到cron中?」: $ howdoi -v add a program to cron 返回结果: Put a shell script in one of these folders: /etc/cron.daily, /etc/cron.hourly, /etc/cron.monthly or /etc/cron.weekly.If these are not enough for you, you can add more specific tasks e.g. twice a month or every 5 minutes. Go to the terminal and type:crontab -e…snipSource: https://askubuntu.com/questions/2368/how-do-i-set-up-a-cron-job 对于这样一个有延伸拓展的问题,返回结果除了有基本的操作指导,还有关于这个问题进一步的建议。 返回多个结果 输入问题「如何链接屏幕?」,要求2个返回结果: $ howdoi -n 2 attach to a screen 返回: screenscreen -S myprogramrunningunderscreenscreen -lsThere are screens on: 4964.myprogramrunningunderscreen (05/31/2013 09:42:29 PM) (Detached) 4874.pts-1.creeper (05/31/2013 09:39:12 PM) (Detached)Source: https://askubuntu.com/questions/302662/reattaching-to-an-existing-screen-session screen -d -rSource: https://askubuntu.com/questions/302662/reattaching-to-an-existing-screen-session 这个例子中,在命令中要求返回2个结果,系统返回也给出了两种连接不同屏幕的方法。 其他功能 还可以查询如何更新PHP: $ howdoi upgrade to latest phpsudo apt-get upgrade sudo apt-get dist-upgrade sudo apt-add-repository ppa:ondrej/php sudo apt-add-repository ppa:ondrej/php5-oldstable sudo apt-add-repository ppa:ondrej/php5 sudo apt-add-repository ppa:ondrej/php5-5.6 sudo apt-get update sudo apt-get install php5.5 sudo apt-get install php5.6 sudo apt-get install php7.0 do-release-upgradeSource: https://askubuntu.com/questions/565784/how-do-i-upgrade-php-version-to-the-latest-stable-released-version howdoi工具调用的解答库来源于askbuntu.com论坛上的提问,论坛上已有的问题解答都可以通过本工具实现对话式查询。 5月19日,这个项目刚刚在Github上开源。 显卡驱动、硬件支持、图形领域巩固、用户体验、软件支持、社区合作,这些小问题叠加在一起,成了谁都无法轻忽的Linux缺点,这些痛点也能够即是让新用户炙手可热的真正缘故。 本项目在Hacker news上收获了网友的盛赞,其中有一名用户在奖饰之余,还指出了像Linux这品种Unix体系的通病:用户友爱性差,获取赞助十分难题。 这位印度小哥San Kumar办理了一个大疑问:Linux小白无法高效获取疑问的办理计划,并且整个对象只用了100行代码实现。 同时这位用户还发起这种适用对象今后应当作为尺度,加入全部类Unix操纵系统的衍生版本。 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |