自由,分享
archlinux 常用操作

linux查看端口占用情况的

sky@arch-sky ~/.c/clash-verge [1]> sudo lsof -i :7890
COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
clash-met 20391  sky   10u  IPv4 112794      0t0  UDP localhost:7890
clash-met 20391  sky   11u  IPv4 112793      0t0  TCP localhost:7890 (LISTEN)

网络情况查看

sky@skyPC ~> ip route
default via 192.168.68.1 dev eno1 proto dhcp src 192.168.68.63 metric 100
192.168.68.0/24 dev eno1 proto kernel scope link src 192.168.68.63 metric 100
sky@skyPC ~> ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 18:c0:4d:01:2b:e4 brd ff:ff:ff:ff:ff:ff
    altname enp0s31f6

wifi连接工具iwd

iwctl #进入工具         
station list #查看网卡设备
station wlan0 scan #扫描可用wifi
station wlan0 get-network  #获取可用wifi
station connect ssid   #连接wifi

蓝牙连接工具

bluetoothctl #进入工具
scan on #开启扫描
pair id   #配对设备
trust id #信任设备

获取窗口信息

xprop 

日志实时显示,用于定位问题

journalctl -f

自动更新域名证书

certbot renew