3 Launching and Exiting 5 Running the Simulator
Getting Started  / 

4 Command Line Interface (CLI)

This section focuses on some practical information related to the use of the CLI. Particularly, the following information is presented:

This section doesn’t cover all available CLI commands, but here are some examples of what can be done with commands:

This tutorial assumes that the user has followed the installation steps in the installation section and knows how to launch the simulator.

4.1 Introduction

As a short introduction to the functionality of the CLI:

4.1.1 CLI Prompts

When launching the simulator (simics.bat on Windows or ./simics on Linux), the CLI is started automatically. The CLI has several prompts, but here are most important.

4.1.2 Keyboard Shortcuts

These are some shortcuts that may be useful:

4.2 Command Line Completion

To simplify interactive use, the CLI implements command line completion, also known as tab completion. The CLI can complete commands, arguments, file names, and some other entities. Let’s see how command line completion works for the load-target command:

We have now used command line completion to load the qsp/firststeps target.

4.3 The help command

The simulator documentation can be accessed in the CLI with the help command. The help command provides access to the documentation for:

To try the command, enter the following command to see the documentation for the load-target command:

simics> help load-target
Command load-target

   Synopsis
      load-target "target" ["namespace"] ["preset"|presets|"preset_yml"]
...

To get the documentation for any command just run the help command specifying the command you are interested in:

simics> help <command-of-interest>

More information on the help command can be obtained by reading the documentation for the help command itself:

simics> help help
Command help

   Alias
      h, man

   Synopsis
      help ["topic"]
...

The help-search command allows to search the documentation for a particular string. Here is a sample usage of the help-search command:

simics> help-search python
The text 'python' appears in the documentation
for the following items:

Command        %
Command        <bp-manager.log>.break
Command        <bp-manager.log>.run-until
Command        <bp-manager.log>.trace
...

4.4 Further Reading

More information about the CLI can be found in Simics User's Guide, section The Command Line Interface.

3 Launching and Exiting 5 Running the Simulator