xxxxxxxx:~$ nmcli con
NAME UUID TYPE DEVICE
有线连接 2 2e4db35a-baf1-367d-942d-831cd2870f64 ethernet usb0
docker0 ddef3eb8-2150-4aad-9580-664a0e533007 bridge docker0
有线连接 1 58487337-73c4-31b9-b473-40a5b50d5e4d ethernet --
xxxxxxxxxx:~$ nmcli con show --active
NAME UUID TYPE DEVICE
有线连接 2 2e4db35a-baf1-367d-942d-831cd2870f64 ethernet usb0
docker0 ddef3eb8-2150-4aad-9580-664a0e533007 bridge docker0
3. 启动关闭网络
xxxxxxxxxxx:~$ nmcli con up 有线连接\ 1
连接已成功激活(D-Bus 活动路径:/org/freedesktop/NetworkManager/ActiveConnection/6)
xxxxxxxxxxx:~$ nmcli con show --active
NAME UUID TYPE DEVICE
有线连接 2 2e4db35a-baf1-367d-942d-831cd2870f64 ethernet usb0
有线连接 1 58487337-73c4-31b9-b473-40a5b50d5e4d ethernet enp2s0
docker0 ddef3eb8-2150-4aad-9580-664a0e533007 bridge docker0
xxxxxxxxxxx:~$ nmcli con down 有线连接\ 1
成功停用连接 "有线连接 1"(D-Bus 活动路径:/org/freedesktop/NetworkManager/ActiveConnection/6)
xxxxxxxxxxx:~$ nmcli con show --active
NAME UUID TYPE DEVICE
有线连接 2 2e4db35a-baf1-367d-942d-831cd2870f64 ethernet usb0
docker0 ddef3eb8-2150-4aad-9580-664a0e533007 bridge docker0
输入设备管理
xinput
1. xinput/xinput list 列出input设备
xxxxxxxxxxxxxxxxxxx$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Elan Lenovo USB Optical Mouse id=10 [slave pointer (2)]
⎜ ↳ uinput-custom-dev id=14 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Sleep Button id=9 [slave keyboard (3)]
↳ LiteOn Lenovo Traditional USB Keyboard id=11 [slave keyboard (3)]
↳ LiteOn Lenovo Traditional USB Keyboard System Control id=12 [slave keyboard (3)]
↳ LiteOn Lenovo Traditional USB Keyboard Consumer Control id=13 [slave keyboard (3)]
↳ uinput-custom-dev id=15 [slave keyboard (3)]