Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the howdoi command in linux

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to use howdoi command in linux", the content is simple and easy to understand, clear organization, I hope to help you solve doubts, let Xiaobian lead you to study and learn "how to use howdoi command in linux" this article bar.

An Indian software engineer has developed howdoi, a handy command-line how-to Q&A tool for solving this puzzle.

Directly enter "how do i + the question you want to ask" on the terminal, where the question is no longer a complex command option, but a normal natural language, and you go to Google search is no different.

Howdoi then returns immediately to the detailed tutorial, which implements querying Linux interactive commands in the form of everyday conversations.

Such an easy-to-use tool is not complicated to install.

installation steps

Howdoi installation takes only two steps and requires PHP 5.0 or above.

Run the following command to complete the installation:

$ 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

When used, there are several useful command characters:

howdoi [-n -v -h] - question

where-n represents the number of answers returned (default is 1), -v represents the complete answer returned (default only returns the relevant code), and-h represents help for the question.

Quick Query Tutorial

Enter the question "How do I extract bz2 files?":

$ howdoi extract a bz2 file

Return Results:

-j, -bzip2 filter the archive through bzip2 tar -xvjf enginsxt.tar.bz2Source: https://askubuntu.com/questions/707861/how-to-extract-tar-bz2

Howdoi not only shows how to use the command, but also gives the URL of the source of the problem.

Detailed tutorial query:

Enter the question "How do I add a program to cron?":

$ howdoi -v add a program to cron

Return Results:

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

For such an extended problem, the return result contains not only basic instructions, but also further suggestions about the problem.

return multiple result

Enter the question "How do I link screens?" Two results are required:

$ howdoi -n 2 attach to a screen

Return:

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-sessionscreen -d -rSource: https://askubuntu.com/questions/302662/reattaching-to-an-existing-screen-session

In this example, the command asks for 2 results, and the system returns two ways to connect different screens.

other functions

You can also query how to update 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 tool calls the solution library from the askbuntu.com forum questions, the existing questions on the forum can be answered through this tool to achieve dialogue query.

On May 19, the project was just open-sourced on Github.

Graphics drivers, hardware support, graphics platform stability, user experience, software support, community collaboration, these small problems add up to Linux flaws that no one can ignore. These pain points may be the real reason why new users are afraid.

The project received rave reviews on Hacker news, with one user pointing out a common problem with Unix-like systems like Linux: poor user-friendliness and difficulty getting help.

San Kumar solved a big problem: Linux novices couldn't get a solution to the problem efficiently, and the entire tool was implemented in only 100 lines of code.

The same user suggested that this utility should be standard in all future derivatives of Unix-like operating systems.

That's all for "how to use howdoi command in linux." Thanks for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report