|
| 1 | +--- |
| 2 | +sidebar_position: 5 |
| 3 | +description: "Open a feature, run a lookup or connect to a host directly from the keyboard with the run command (Ctrl+Shift+P), including profiles and suggestions." |
| 4 | +keywords: [NETworkManager, run command, command palette, keyboard shortcut, Ctrl+Shift+P, quick launch, ping, DNS lookup, remote desktop] |
| 5 | +--- |
| 6 | + |
| 7 | +# Run Command |
| 8 | + |
| 9 | +The **Run Command** opens a feature and runs it directly from the keyboard: press `Ctrl+Shift+P`, type a command like `ping 10.0.0.1` and press `Enter`. |
| 10 | + |
| 11 | +The run command can also be opened with the **Run command...** button in the title bar. |
| 12 | + |
| 13 | +## Syntax |
| 14 | + |
| 15 | +``` |
| 16 | +command [target] [argument] [type] |
| 17 | +command @profile |
| 18 | +``` |
| 19 | + |
| 20 | +- **Command:** Name or alias of the feature (e.g. `dnslookup` or `dns`), see [Commands](#commands). Without a target, the feature is only opened. |
| 21 | +- **Target:** Host(s), IP range, query or URL, depending on the feature. Lists are separated with `;` as everywhere in NETworkManager, spaces around `;` are allowed (e.g. `ping 10.0.0.1; 10.0.0.2`). |
| 22 | +- **Argument** and **type:** Additional values of some features (e.g. DNS server and record type of the DNS lookup), in any order after the target. |
| 23 | +- **Profile:** `@` followed by the name of a profile runs the profile with its settings (e.g. `rdp @server-01`). Only profiles that are enabled for the feature can be used. The name can contain spaces (e.g. `rdp @Web Server 01`). An `@` that is not at the beginning of the target is part of the host (e.g. `admin@server-01`). |
| 24 | + |
| 25 | +The input is validated like the input field of the feature (e.g. a valid host or IP range). If it is not valid, an error is shown and the dialog stays open. |
| 26 | + |
| 27 | +## Commands |
| 28 | + |
| 29 | +| Command | Aliases | Arguments | Example | |
| 30 | +| ------------------ | ------------------ | ----------------------------------- | ---------------------------------------- | |
| 31 | +| `ipscanner` | `scan` | `<range>` | `scan 10.0.0.0/24` | |
| 32 | +| `portscanner` | `portscan` | `<hosts> [ports]` | `portscan 10.0.0.1 22; 80; 443` | |
| 33 | +| `pingmonitor` | `ping` | `<hosts>` | `ping 10.0.0.1; 10.0.0.2` | |
| 34 | +| `traceroute` | `trace`, `tracert` | `<host>` | `trace borntoberoot.net` | |
| 35 | +| `dnslookup` | `dns`, `nslookup` | `<hosts> [server] [type]` | `dns borntoberoot.net 1.1.1.1 aaaa` | |
| 36 | +| `remotedesktop` | `rdp`, `mstsc` | `<host[:port]>` | `rdp server-01` | |
| 37 | +| `powershell` | `ps`, `pwsh` | `<host>` | `ps server-01` | |
| 38 | +| `putty` | `ssh` | `<host>` | `ssh server-01` | |
| 39 | +| `tigervnc` | `vnc` | `<host>` | `vnc server-01` | |
| 40 | +| `webconsole` | `web` | `<url>` | `web https://borntoberoot.net` | |
| 41 | +| `snmp` | | `<host>` | `snmp 10.0.0.1` | |
| 42 | +| `rdap` | | `<query> [type]` | `rdap 1.10 asn` | |
| 43 | +| `whois` | | `<domain>` | `whois borntoberoot.net` | |
| 44 | +| `settings` | | | `settings` | |
| 45 | + |
| 46 | +All features that accept a target also accept a profile (`@profile`). The other features (e.g. `subnetcalculator`, `firewall`) can be opened with their name. Features that are hidden in [Settings > General](./settings/general.md) are not available. |
| 47 | + |
| 48 | +:::note |
| 49 | + |
| 50 | +- **Remote Desktop, PowerShell, PuTTY, TigerVNC and Web Console** open the connect dialog with the host, so the connection settings can be adjusted before connecting. A profile connects directly with its settings. |
| 51 | +- **DNS lookup:** The type is the DNS record type (`a`, `aaaa`, `any`, `caa`, `cname`, `dnskey`, `mx`, `ns`, `ptr`, `soa`, `srv`, `txt`). Without a type, IP addresses are looked up with `ptr` and other hosts with the type selected in the feature. The DNS server is an IP address or a configured DNS server. |
| 52 | +- **RDAP:** The type is `domain`, `nameserver`, `tld`, `ip`, `asn` or `entity`. Without a type, it is detected from the query (see [RDAP](./application/rdap.md#example-inputs)). |
| 53 | + |
| 54 | +::: |
| 55 | + |
| 56 | +## Suggestions |
| 57 | + |
| 58 | +While typing, suggestions are shown below the input: |
| 59 | + |
| 60 | +| Input | Suggestions | |
| 61 | +| ---------------------------- | ------------------------------------------------------------------------ | |
| 62 | +| _empty_ | Recently run commands and all features | |
| 63 | +| Command (e.g. `tr`) | Matching features | |
| 64 | +| After the command (`rdp `) | The input as typed, profiles of the feature and recent commands | |
| 65 | +| `@` (e.g. `rdp @web`) | Profiles of the feature (with group and host) | |
| 66 | +| After the target | The input as typed, types of the feature (e.g. DNS record types) and recent commands | |
| 67 | + |
| 68 | +The input as typed is always the first suggestion, so `Enter` runs what was typed. Profiles, recent commands and types are selected with the arrow keys. |
| 69 | + |
| 70 | +| Key | Action | |
| 71 | +| ------------ | ---------------------------------------------- | |
| 72 | +| `Up`, `Down` | Select a suggestion | |
| 73 | +| `Tab` | Insert the selected suggestion into the input | |
| 74 | +| `Enter` | Run the selected suggestion | |
| 75 | +| `Esc` | Close the dialog | |
| 76 | + |
| 77 | +Run commands are saved in a history (the number of entries is set in [Settings > General](./settings/general.md)). |
0 commit comments