📅  最后修改于: 2023-12-03 14:44:00.950000             🧑  作者: Mango
list avds
- Shell-BashThe list avds
command is used in the Shell-Bash programming language to retrieve a list of Android Virtual Devices (AVDs) installed on your system. This command provides information about the available AVDs, such as the device name, target API level, CPU architecture, and system image path.
The general syntax of the list avds
command is as follows:
$ list avds [options]
The list avds
command supports the following options:
-c
or --compact
: Display a compact list with minimal information about the AVDs.-h
or --help
: Show the help message and exit.-p <PATH>
or --path <PATH>
: Specify the path to the AVD directory. By default, it uses the default AVD location.-s
or --silent
: Display output in a machine-readable format for automated processing.-v
or --verbose
: Display detailed information about the AVDs.Here are a few examples of using the list avds
command:
$ list avds -v
$ list avds -c
$ list avds -p /path/to/avds
$ list avds -s
The output of the list avds
command is formatted in Markdown for easy readability. Here's an example of the output:
| Name | Target API | CPU/ABI | Path |
|-----------|------------|---------------|---------------------------|
| Nexus_5X | 28 | x86 | /path/to/avds/Nexus_5X.avd |
| Pixel_3 | 29 | x86_64 | /path/to/avds/Pixel_3.avd |
| Nexus_7 | 24 | arm64-v8a | /path/to/avds/Nexus_7.avd |
The table displays the AVD name, target API level, CPU architecture, and the path to the system image.
The list avds
command in Shell-Bash provides a convenient way for programmers to retrieve information about the Android Virtual Devices available on their system. By using various options, you can customize the output format and display the desired level of detail.