In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to use all the parameters of the previous command in CentOS. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
1. Use all the parameters of the previous command
Method:! *
Example: if I edit hello.txt and bye.txt, then I want to add these two files using git add. You can use: git add! *
two。 Use the last argument of the previous command
Method:! $
ALT +.
ESC +.
The latter two methods will be automatically completed in terminal.
3. Use the part of the previous command except the last parameter
Method:! -:
Example: personally, I think this is useful, because some commands enter a lot of options in the middle, and the last one is the one that actually works, so it will be troublesome to enter the option again.
4. Use any part of the previous command
Methods: ALT + +.
The parts of the previous command represented by num, starting at 0, for ls-shld hello.txt. ALT + 0mm. It's ls. -1 is shld.
5. Replace a part of the previous command
Method: replace foo with bar
^ Foo ^ bar only replaces one
!!: gs/foo/bar replaces all
6. Previous order
Method:!
More: we often run a lot of very long commands. At this time, you can view the commands through history and then use! (the command number in history).
All the parameters on how to use the previous command in CentOS are shared here. I hope the above can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.
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.