Sample Header Ad - 728x90

nmcli device status filter specific interface

0 votes
1 answer
2702 views
Is it possible to print the status of DEVICE enp0s9 without using egrep? $ nmcli device status DEVICE TYPE STATE CONNECTION enp0s3 ethernet connected Wired connection 1 enp0s9 ethernet connected Wired connection 2 lo loopback unmanaged -- $ I want similar output by using nmcli command only and not with external command such as egrep $ nmcli device status | egrep 'D|9' DEVICE TYPE STATE CONNECTION enp0s9 ethernet connected Wired connection 2 $
Asked by Wolf (1741 rep)
Feb 27, 2021, 08:02 AM
Last activity: May 8, 2025, 01:04 PM