nmcli -t -f NAME,DEVICE con show

Category: Local Network & Public Hosting

nmcli -t -f NAME,DEVICE con show

List connections in terse script-friendly output

The -t terse flag removes headers and aligns values with colons, while -f selects only the NAME and DEVICE columns, making the output easy to feed into shell scripts. This is the machine-readable form of nmcli connection show. Add --active to restrict the list to live connections.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.