Search

Chapter 21. shell

download PDF

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

NameDescription

mode

The completion mode to set. The valid completion modes are: global, first, subshell.

21.1.4. Options

NameDescription

--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

NameDescription

command

Execution command with arguments

21.2.4. Options

NameDescription

--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

NameDescription

--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

NameDescription

className

The name of the class to invoke

arguments

Arguments to pass to the method of the given class

21.4.4. Options

NameDescription

--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

NameDescription

--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

NameDescription

format

The format pattern to use

arguments

The arguments for the given format pattern

21.6.4. Options

NameDescription

--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

NameDescription

script

A URI pointing to the script

args

Arguments for the script

21.7.4. Options

NameDescription

--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

NameDescription

print

Print stack traces or not (defaults to true)

21.8.4. Options

NameDescription

--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

NameDescription

id

Show details for thread with this Id

21.9.4. Options

NameDescription

--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

NameDescription

--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

NameDescription

command

The command to watch / refresh

21.11.4. Options

NameDescription

--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

Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.