This is the 30th day of my participation in the August Challenge

A lifelong learner, practitioner and sharer committed to the path of technology, a busy and occasionally lazy original blogger, an occasionally boring and occasionally humorous teenager.

Welcome to dig friends wechat search “Jie Ge’s IT journey” attention!

Can’t remember how to use commands on Linux terminals? This open source project helps you solve it.

Hello, I’m JackTian.

In Linux terminal, it is inevitable to encounter some problems, but do not remember the problem before the relevant solution? Began to search through a variety of search engines to find their own solutions, but do not want to leave the terminal to find the answer, how to do?

If you’re working with Linux, this open source project will definitely help you, and you won’t have any problems with it.

If you don’t use the Linux environment much, but occasionally need to perform some tasks, you must be unfamiliar with Linux terminal commands, do not fear, today I share a useful open source project tool: howdoi.

As we all know, there are many commands in Linux operating system. You don’t need to memorize these commands deliberately. You only need to know the syntax operation of your common commands.

Install howdoi

$ 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
Copy the code

howdoi

  • -n: Number of results (default: 1)
  • -v: Displays the full answer (otherwise only the code)
  • -I: Interactive or REPL mode (for hotkey binding)
  • – h: help

Iii. Use of howdoi

To use this tool, you can quickly get answers to common Linux-related questions by typing howdoi [Your question] into the terminal. Search commands in English.

$ howdoi extract a bz2 file
  -j, --bzip2
            filter the archive through bzip2
  tar -xvjf enginsxt.tar.bz2
  
  Source: https://askubuntu.com/questions/707861/how-to-extract-tar-bz2
Copy the code

The demo is as follows:

Finally, the howdoi address is attached.

GitHub address: github.com/san-kumar/h…

conclusion

This article, the overall content is small, I hope that through the open source project tools can help you in the future work in the use of Linux terminal under the problem, can greatly improve your work efficiency. Of course, there is also the Apropos command, the BASH history command’s ability to quickly recall forgotten Linux commands, the command-line interactive cheat sheet tool Navi, and the ultimate command Fuck, a terminal application that automatically corrects mistyped commands.

In this paper, to the end.


Original is not easy, if you think this article is useful to you, please kindly like, comment or forward this article, because this will be my power to output more high-quality articles, thank you!

By the way, please give me some free attention! In case you get lost and don’t find me next time.

See you next time!