Forrest logo
back to the lxc tool

lxc:tldr:f810d

lxc: List local containers matching a string. Omit the string to list all local containers.
$ lxc list ${match_string}
try on your machine

The command "lxc list ${match_string}" is used to list the containers in the LXC (Linux Containers) system that match a specific string or pattern.

Here's an explanation of each part of the command:

  • "lxc list": This is the basic command to list containers in LXC.
  • "${match_string}": This is a placeholder for the actual string or pattern you want to use to filter the container list. It can be replaced with any string. For example, if you want to list containers that have the word "web" in their names, you would replace "${match_string}" with "web". The command will then list all containers that have "web" in their names.

In summary, the "lxc list ${match_string}" command allows you to filter and list specific containers based on a given string or pattern.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lxc tool