Several useful unix command shortcuts 1 .! $ Bash or zsh indicates the last parameter of the previous command, for example, here! $ Indicates file-B, so you can easily view the file content of file-B; [java] $ cpfile-afile-B $ vim! $2. grep-ri-r represents... several useful unix command shortcuts 1 .! $ Bash or zsh indicates the last parameter of the previous command, for example, here! $ Indicates file-B, so you can easily view the file content of file-B; [java] $ cp file-a file-B $ vim! $2. grep-ri-r indicates recursive search, searches in all subdirectories, and I indicates case sensitivity; for example, we can replace $ grep */* with grep-r 3.cd. This will return the last Directory [java] [/usr/share/fonts/dejavu]. $ cd/var/log [/var/log] $ cd-/usr/share/fonts/dejavu [/usr/share/fonts/dejavu] $4. reverse I-search if you press ctrl + R in the command line window, you can search for previous commands and re-execute them. alise command alias, which can be used to simplify the alias of commonly used long commands [java] alias vipuppet = 'CD ~ /Projects/puppet; mvim .'
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service