Skip to content

Commit

Permalink
Post-review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pgfaller committed Apr 18, 2024
1 parent 3fbfc41 commit 5fb63a7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions doc/explanation/lxc_show_info.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
(lxc-show-info)=
# About `lxc` 'show' and 'info'
For the entities managed by LXD, the `lxc` command provides a 'list' sub-command, and may provide 'show' and 'info' sub-commands.
The purpose of the 'info' sub-command is to show current state information, and the purpose of the 'show' sub-command is to show configuration information and how the entity is used by other entities.
# About `lxc` `show` and `info`

For example, the `lxc network info` command shows IP address and traffic statistics;
For the entities managed by LXD, the `lxc` command provides a 'list' sub-command, and might provide `show` and `info` sub-commands.
The purpose of the `info` sub-command is to show current state information, and the purpose of the `show` sub-command is to show configuration information and how the entity is used by other entities.

For example, the `lxc network info` command shows IP address and traffic statistics:

Name: lxdbr0
MAC address: 00:16:3e:d3:ec:41
Expand All @@ -21,7 +22,7 @@ For example, the `lxc network info` command shows IP address and traffic statist
Packets received: 1433
Packets sent: 175

and the `lxc network show` command shows further information, and which entities are using the network:
The `lxc network show` command, on the other hand, shows how the network is configured, and which entities are using the network:

config:
ipv4.address: 10.247.40.1/24
Expand Down

0 comments on commit 5fb63a7

Please sign in to comment.