Linux command line ctrl + rlinux command line history is a well-known but not commonly used command, because to check the number of a command, you need to enter history | grepxxx, and because !? Xxx ,! Xxx is neither running nor running, and ctrl + r is much more convenient. Ctrl + r purpose: reverse... linux command line ctrl + r linux command line history is a well-known but not commonly used command, because to check the number of a command, you need to enter history | grep xxx, and because !? Xxx ,! Xxx is neither running nor running, and ctrl + r is much more convenient. Ctrl + r purpose: reverse search for executed commands. (Reverse-I-search) if the existing history611 ruby foo. rb612 ruby bar. rb613 ruby fo. rb614 ruby ba. rb615 ...... 700... if you do not know the serial number, you need to run ruby foo. rb. 1. ctrl + r2, foo or 1, ctrl + r2, fo3, ctrl + r (continue reverse search) only a few keys are required. Of course, it would be more efficient if it was just a few commands or the [up] key.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.