Basic command-line examples

CLI is an interactive shell, and the user can type in the required command and press Tab for autocomplete just like we do in Linux bash. To get the list of commands after you login to the CLI shell for the first time, press your Tab key twice. This will give you a list of all the commands, as shown in the following code:

[RHEVM shell (connected)]#
EOF         add         connect     disconnect  exit        help        info        ping        shell       status       update      action      clear       console     echo        file        history     list        remove     show        summary
[RHEVM shell (connected)]#

As an example, to list the virtual machines, you can type in help for the specific command, and this will open a help page on how to run the command with different options to get the output. Execute the following help ...

Get Getting Started with Red Hat Enterprise Virtualization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.