Show active NetworkManager connection details
Build a paste-ready command, then review its compatibility and effects before running it.
nmcli -f NAME,UUID,TYPE,DEVICE connection show --activeread-onlyno known side effects Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-20
Requirementsnmclinmcli must be installed and available on PATH.
Version supportnmcli Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsNAME UUID TYPE DEVICERepresentative successful output; values vary with the selected target and system state.
Known errorsnmcli: command not foundnmcli is missing or is not available on PATH.
Verifynmcli -f NAME,UUID,TYPE,DEVICE connection show --activeThe output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01nmcliCommandRuns the nmcli stage of this one-liner.
02-fOptionKeeps following new output or selects the command-specific force/file mode.
03NAME,UUID,TYPE,DEVICEArgumentPasses NAME,UUID,TYPE,DEVICE to nmcli.
04connectionArgumentPasses connection to nmcli.
05showArgumentPasses show to nmcli.
06--activeOptionConfigures nmcli with the --active option.
Example input
nmcli -f NAME,UUID,TYPE,DEVICE connection show --active
Example output
NAME UUID TYPE DEVICE
Wired connection 1 2f842449-5fc1-4f0d-a6a3-13bb2eef873f ethernet eth0
Illustrative output — exact values vary by system and data.
Official sources