mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-05 16:33:28 +02:00
24 lines
437 B
Markdown
24 lines
437 B
Markdown
# lxc-ls
|
|
|
|
> List Linux containers.
|
|
> More information: <https://linuxcontainers.org/lxc/manpages/man1/lxc-ls.1.html>.
|
|
|
|
- List all containers:
|
|
|
|
`sudo lxc-ls`
|
|
|
|
- List active containers (including frozen and running):
|
|
|
|
`sudo lxc-ls --active`
|
|
|
|
- List only frozen containers:
|
|
|
|
`sudo lxc-ls --frozen`
|
|
|
|
- List only stopped containers:
|
|
|
|
`sudo lxc-ls --stopped`
|
|
|
|
- List containers in a fancy, column-based output:
|
|
|
|
`sudo lxc-ls {{[-f|--fancy]}}`
|