On a system whose networking is managed by NetworkManager, which command lists the configured connection profiles?
LPIC-1 Exam 102-500, objective 109. Networking fundamentals medium
Draft — not checked yet. This question was written from the published exam objectives and cites the clause it comes from, but nobody has yet read it against that clause and signed for it.
It is kept out of search results and out of mock exams until they have. Read the source below before you take the answer as settled.
The options
Not correct nmcli device disconnect
Wrong, and disruptive. That subcommand takes an interface down and stops NetworkManager from reconnecting it automatically; it lists nothing.
Correct nmcli connection show
Correct. `nmcli connection show` (abbreviated `nmcli con show` or `nmcli c s`) lists profiles with their names, UUIDs, types and the device each is active on. Add a profile name to dump its full settings.
Not correct systemctl status NetworkManager
Wrong. systemctl reports the unit's process state, PID and recent log lines, which tells you whether NetworkManager is running. systemd knows nothing about the connection profiles NetworkManager stores.
Not correct ip link show
Wrong for this question. `ip link show` lists kernel network interfaces and their layer-2 state. Interfaces are not connection profiles, and it reveals nothing about NetworkManager's configuration.
Why
nmcli is organised by object: `nmcli general`, `nmcli device` (hardware interfaces, e.g. `nmcli device status`) and `nmcli connection` (saved profiles). Bring a profile up or down with `nmcli connection up NAME` / `down NAME`. Profiles are stored under /etc/NetworkManager/system-connections/. `nmtui` is the curses front end to the same data.
Where this comes from
- Cited
- manual page nmcli(1)
Practise this
Reading one question is not practice. The trainer will draw a set from objective 109 and space the ones you get wrong.