Reducing keyboard input can greatly improve the productivity of programmers. The use of shortcut keys is a good example. Programmers often use terminals. So is there a similar "shortcut" on the terminal that can improve our efficiency? The programmer's work is often related to before and after. So, this article will demonstrate how to use the previous command to increase productivity.
1.Use all the parameters of the previous command
Method:!*
Example: If I edited hello.txt and bye.txt, then I want to use Git add adds these two files. You can use: git add !*
2. Use the last parameter of the previous command
Method:!$
ALT + .
ESC + .
The latter two methods, the terminal will automatically complete
3. Use the last command except the last parameter part
Method: !-:
Example: Personally think this is useful, because some commands will input a lot of options in the middle, and the last one is the actual working object. If you enter the option again, it will be troublesome.
4. Use any part of the previous command
Method: ALT + + .
where num represents the first part of the previous command, from 0 Start with ls -shld hello.txt. ALT +0+. is ls. 1 is -shld
5. Replace one part of the previous command
Method: Replace foo with bar
^foo^bar Replace only one
!!:gs/foo/bar Replace all
6. Previous command
Method:!!
More: We often run a lot of very Long command, this time, you can view the command through history, and then use ! (history command number).
Experimental Line Connection Diagram: DCRS-5526S Configuration: Assume that the name of the DHCP ad
Have you ever encountered this situation? Generally, there will be no routers in large com
Today, I still need to use a super good chassis to assemble a large-capacity server —
Reducing keyboard input can greatly improve the productivity of programmers. The use of sho
Blade server hard disk boot Linux stand-alone installation (1)
Solution for Flv file cannot be played under the server in 2003.
Zero storage - small non-hard disk server favored
Xeon processor IBM System x3500 priced at 14300
Turn your computer into a virtual server
IIS server backup and recovery settings instructions
Windows Server Administrator PowerShell Getting Started
The server must know a few knowledge
Dhcp server configuration management full Raiders
Linux FTP server security completely Raiders
Analyze the pros and cons of running VMware Server on Win and Linux
Not Win10.1 Microsoft is preparing for October Win10 RTM Preview TH2 Update
What if Win8.1 can't lock the taskbar?
What is system service? Smooth running win7 system service optimization
How to open the sliding shutdown function in Win8.1 system
Win7/Win8.1 games will use the Xbox One controller
Windows 8 system iSCSI initiator?
Join the Windows Server Core operating system to the domain or exit the domain
Win10 system quick start function can not open how to fix?
Win7 free upgrade to win10 system operation steps graphic tutorial
When the computer is turned on, there is an error message. How to do checking media?