LinuxCommandLibrary

lxc-ls

lists Linux containers on the system

TLDR

List all containers

$ sudo lxc-ls
copy
List active containers
$ sudo lxc-ls --active
copy
List frozen containers
$ sudo lxc-ls --frozen
copy
List stopped containers
$ sudo lxc-ls --stopped
copy
List with fancy output
$ sudo lxc-ls --fancy
copy
Display help
$ lxc-ls --help
copy

SYNOPSIS

lxc-ls [options]

DESCRIPTION

lxc-ls lists Linux containers on the system. It can filter by state and display detailed information in various formats.

PARAMETERS

--active

Show running and frozen containers
--frozen
Show only frozen containers
--running
Show only running containers
--stopped
Show only stopped containers
-f, --fancy
Column-formatted detailed output
-F, --fancy-format COLS
Custom columns for fancy output
-1
One container per line
-?, --help
Display help information

FANCY OUTPUT COLUMNS

NAME, STATE, AUTOSTART, GROUPS, IPV4, IPV6, UNPRIVILEGED

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community