Linux command
lxc-info 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Example
sudo lxc-info [container_name]
Example
lxc-info --help
说明
lxc-info displays information about a Linux container including its state, PID, IP addresses, CPU and memory usage.
参数
- -n, --name NAME
- Container name
- -s, --state
- Show state only
- -p, --pid
- Show PID only
- -i, --ips
- Show IP addresses only
- -c, --config KEY
- Show specific config value
- -S, --stats
- Show usage statistics
- -?, --help
- Display help information
FAQ
What is the lxc-info command used for?
lxc-info displays information about a Linux container including its state, PID, IP addresses, CPU and memory usage.
How do I run a basic lxc-info example?
Run `sudo lxc-info [container_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -n, --name NAME do in lxc-info?
Container name