In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use automatic correction tools in linux to assist users to correct terminal command input, the article is very detailed, has a certain reference value, interested friends must read it!
Wrong commands are often entered in linux, and users want to use the command line automatic correction tool to assist users in correcting commands. How should I use it? Let's take a look at the detailed tutorial.
1. Execute the following command in the terminal to install the corresponding python environment.
Sudo apt install-y python3-dev python3-pip
2. Then execute the following command to install the correction tool.
Sudo-H pip3 install thefuck
3. Then use vim to open the bashrc configuration file in the current user's home directory.
4. Add the content shown in the following figure. This allows you to use short commands to make corrections.
5. Reload bashrc by executing the command shown in the following figure.
6. At this point, for example, to open the / etc/passwd file. Need to execute
Sdo vim / etc/passwd
It was supposed to be a sdo command, but the user typed it into sdo. At this point, you only need to execute the correction command, and you can see the correct command. Press enter directly to execute. There is no need for the user to enter another string of commands.
7. As shown in the following figure, type the apt-get installation command into the atp-get command. At this time, you can see the correct command immediately by executing the correction command, and you only need to enter to install it normally.
The above is all the contents of the article "how to use automatic correction tools in linux to assist users to correct terminal command input". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.