1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-03 15:55:26 +02:00
tldr/pages/linux/lxc-ls.md

29 lines
480 B
Markdown
Raw Normal View History

2025-02-02 03:16:08 +02:00
# lxc-ls
> List Linux containers.
> More information: <https://linuxcontainers.org/lxc/manpages/man1/lxc-ls.1.html>.
- List all containers:
`sudo lxc-ls`
2025-02-02 03:16:08 +02:00
- List active containers (including frozen and running):
`sudo lxc-ls --active`
2025-02-02 03:16:08 +02:00
- List only frozen containers:
`sudo lxc-ls --frozen`
2025-02-02 03:16:08 +02:00
- List only stopped containers:
`sudo lxc-ls --stopped`
2025-02-02 03:16:08 +02:00
- List containers in a fancy, column-based output:
2025-03-12 21:05:58 +02:00
`sudo lxc-ls {{[-f|--fancy]}}`
2025-03-26 00:36:41 +02:00
- Display help:
`lxc-ls {{[-?|--help]}}`