MobaXterm/Xshell quick command macro (macro) configuration

Click to follow the "Embedded IoT Miscellaneous Talk" official account, choose the "Star Standard Official Account" dry goods benefits, and deliver them as soon as possible!

Reposted on the personal official account: MobaXterm/Xshell quick command macro (macro) configuration)

content

When using MobaXtermor Xshellconnecting to a remote server, add commonly used command macros (Macro) to execute with one click, which can improve efficiency and save time.

Instructions:

MobaXterm:

insert image description here

  • Left menu bar -> Macros-> Record new macro;

  • Click Record new macroto start recording the macro;

  • Enter the command you need in the terminal interface on the right;

  • Click again Stop recording macroto end recording;

  • The last recorded macro will be saved Saved macrosin the list;

  • When you need to execute, Saved macrosyou only need to click the macro saved in the list.

If the currently installed version does not support direct recording of macros in the following situations, you can directly import the attached file with Macrosthe right mouse button , and then edit and change commonly used commands according to your needs.Import macro

  • By default, there are up to 4 macros for this action. What if you want a macro (macro instruction)? The operation is as follows:
    just select the existing Marcoleft button Duplicate "xxx"and there will be one more, and then command and edit the desired command.

Xshell:

  • Tools -> Quick Command Set.

  • You can create, edit, add, and modify command sets.

  • The following is to save the command set just entered, which can be edited and added, and click to execute.

Guess you like

Origin blog.csdn.net/Youning_Yim/article/details/130149590