【Linux】查看已经连接WiFi的密码

查看已经连接wifi的连接信息

在LInux中,已连接的WiFi信息存放在/etc/NetworkManager/system-connections
目录下。

cd /etc/NetworkManager/system-connections
liushiyao@liushiyao-desktop:/etc/NetworkManager/system-connections$ ls
crazy  crazy 1  CRAZY STUDIO  Kingsley  MEIZU  Mylover  pi  pi3  TP-LINK_2C40  TP-LINK_2C40_EXPAND  vivo X5L  对方正在学习...

查看连接信息

sudo  cat pi3
[connection]
id=pi3
uuid=××××
type=wifi
permissions=
secondaries=

[wifi]
mac-address=××××
mac-address-blacklist=
mac-address-randomization=0
mode=infrastructure
seen-bssids=
ssid=pi3

[wifi-security]
group=
key-mgmt=wpa-psk
pairwise=
proto=
psk=liushiyao

[ipv4]
dns-search=
method=auto

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
ip6-privacy=0
method=auto

你可能感兴趣的:(Linux)