Chapter 21. shell
21.1. shell:completion
21.1.1. Description
Display or change the completion mode on the current console session.
21.1.2. Syntax
shell:completion [options] [mode]
21.1.3. Arguments
| Name | Description |
|---|---|
| mode | The completion mode to set. The valid completion modes are: global, first, subshell. |
21.1.4. Options
| Name | Description |
|---|---|
| --help | Display this help message |
21.2. shell:exec
21.2.1. Description
Executes system processes.
21.2.2. Syntax
shell:exec [options] command
21.2.3. Arguments
| Name | Description |
|---|---|
| command | Execution command with arguments |
21.2.4. Options
| Name | Description |
|---|---|
| --help | Display this help message |
21.3. shell:info
21.3.1. Description
Prints system information.
21.3.2. Syntax
shell:info [options]
21.3.3. Options
| Name | Description |
|---|---|
| --help | Display this help message |
| --memory-pools, -mp | Includes detailed information about memory pools |
21.4. shell:java
21.4.1. Description
Executes a Java standard application.
21.4.2. Syntax
shell:java [options] className [arguments]
21.4.3. Arguments
| Name | Description |
|---|---|
| className | The name of the class to invoke |
| arguments | Arguments to pass to the method of the given class |
21.4.4. Options
| Name | Description |
|---|---|
| --help | Display this help message |
| -m, --method | Invoke a named method |
21.5. shell:logout
21.5.1. Description
Disconnects shell from current session.
21.5.2. Syntax
shell:logout [options]
21.5.3. Options
| Name | Description |
|---|---|
| --help | Display this help message |
21.6. shell:printf
21.6.1. Description
Formats and prints arguments.
21.6.2. Syntax
shell:printf [options] format arguments
21.6.3. Arguments
| Name | Description |
|---|---|
| format | The format pattern to use |
| arguments | The arguments for the given format pattern |
21.6.4. Options
| Name | Description |
|---|---|
| --help | Display this help message |
21.7. shell:source
21.7.1. Description
Run a script
21.7.2. Syntax
shell:source [options] script [args]
21.7.3. Arguments
| Name | Description |
|---|---|
| script | A URI pointing to the script |
| args | Arguments for the script |
21.7.4. Options
| Name | Description |
|---|---|
| --help | Display this help message |
21.8. shell:stack-traces-print
21.8.1. Description
Prints the full stack trace in the console when the execution of a command throws an exception.
21.8.2. Syntax
shell:stack-traces-print [options] [print]
21.8.3. Arguments
| Name | Description |
|---|---|
| | Print stack traces or not (defaults to true) |
21.8.4. Options
| Name | Description |
|---|---|
| --help | Display this help message |
21.9. shell:threads
21.9.1. Description
Prints the current threads (optionally with stacktraces)
21.9.2. Syntax
shell:threads [options] [id]
21.9.3. Arguments
| Name | Description |
|---|---|
| id | Show details for thread with this Id |
21.9.4. Options
| Name | Description |
|---|---|
| --tree | Display threads as a tree |
| --list | Display threads as a list |
| -e, --empty-groups | Show empty groups |
| --packages | Pruned packages |
| --help | Display this help message |
| --monitors | Display monitors |
| -t, --threshold | Minimal number of interesting stack trace line to display a thread |
| --locks | Display locks |
| --no-format | Disable table rendered output |
21.10. shell:ttop
21.10.1. Description
Display threads information
21.10.2. Syntax
shell:ttop [options]
21.10.3. Options
| Name | Description |
|---|---|
| --seconds, -s | Delay between updates in seconds |
| --order, -o | Comma separated list of sorting keys |
| --millis, -m | Delay between updates in milliseconds |
| --nthreads, -n | Only display up to NTHREADS threads |
| --help | Display this help message |
| --stats, -t | Comma separated list of stats to display |
21.11. shell:watch
21.11.1. Description
Watches & refreshes the output of a command
21.11.2. Syntax
shell:watch [options] command
21.11.3. Arguments
| Name | Description |
|---|---|
| command | The command to watch / refresh |
21.11.4. Options
| Name | Description |
|---|---|
| --help | Display this help message |
| -n, --interval | The interval between executions of the command in seconds |
| -a, --append | The output should be appended but not clear the console |

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.