Improve operational efficiency terminal trick

Quickly identify configuration file

For example, pwd in the Tomcat root directory, want to change index.ftl:

you -a | grip index.ftl

You can get the absolute path index.ftl, vi to edit it

Modify the jar in a profile

For example, there are projects correspond gateway.jar, want to modify the inside of application.yml, you do not need to unpack:

vi gateway.jar

Display interface into a jar package all the files, based on keywords to find application.yml, the transport can be modified for use vi

Move the cursor

After entering a long list of characters, beginning with a sudden want to change a character, press the left arrow keys do not need to have:

Key combination effect
ctrl A Move the cursor to the beginning of the line
ctrl E Move the cursor to the end of the line
ctrl H To delete a character before the cursor
ctrl W To delete a word before the cursor

Guess you like

Origin www.cnblogs.com/mougg/p/12559008.html