Workbench intelligent command completion

更新时间:
复制 MD 格式

Intelligent command completion is an intelligent assistant feature in the Alibaba Cloud ECS Workbench terminal. As you type, it predicts and suggests commands, parameters, and options in real time based on the context.

This feature provides the following benefits:

  • Improves input accuracy: Avoids spelling errors by enabling you to select commands and parameters from a suggestion list, which ensures they run correctly.

  • Provides intelligent suggestions: Dynamically displays all valid subcommands and parameter options based on your input, reducing the need to memorize complex commands.

  • Accelerates command input: Simplifies command entry to a "type-and-select" process, significantly reducing keystrokes. This improves efficiency, especially when performing repetitive tasks.

Prerequisites

To use this feature, RAM users must have the required permissions to connect to an ECS instance using Workbench.

Procedure

  1. Connect to a Linux instance using Workbench

    Log on to the ECS console - Instances page. Find the target instance, click Connect in the Actions column. For the Workbench option, click Sign in now.

  2. Trigger command completion

    • In the Workbench terminal window, enter the prefix of a common command. For example, when you use the systemctl command to manage the firewall service, enter systemctl status fire.

    • When you type fire, a suggestion list that contains firewalld automatically appears.

      The suggestion list does not block your normal input. You can ignore it and continue typing. The list filters and updates its options in real time as you type. To manually close the suggestion list, press the Esc key.

      image

  3. Select and complete the command

    Use the (Up arrow) and (Down arrow) keys to select the suggestion systemctl status firewalld. Then, press the Tab key to complete the command and press the Enter key to execute it.

Disable intelligent command completion

This feature is enabled by default. To disable it, use one of the following methods:

  • Method 1: Right-click in the terminal to open the context menu, and then click Intelligent command completion to disable the feature.

  • Method 2: Click the image icon in the lower-left corner of the page. Navigate to AI Settings > Shell, and turn off Command completion.

FAQ

  • Is intelligent command completion free of charge?

    Yes, this feature is free of charge.

  • Why don't completion suggestions appear?

    This issue can be caused by network latency. If it occurs, wait a moment, refresh the page, or reconnect to the terminal.