xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Linux iwlist command All In One

Linux iwlist command All In One

wifi scan

iwlist

# scanning for wireless networks
$ sudo iwlist wlan0 scan

$ sudo iwlist wlan0 scan > wifi-scan.md

$ cat ./wifi-scan.md | grep ESSID
$ iwconfig

# Linux / macOS
$ ifconfig

# Windows
$ ipconfig

# macOS
$ ipconfig
usage: ipconfig <command> <args>
where <command> is one of waitall, getifaddr, ifcount, getoption, getiflist, getsummary, getpacket, getv6packet, getra, getdhcpduid, getdhcpiaid, set, setverbose

image

Raspberry Pi & Node.js

wpa_supplicant.conf 配置 SSH 连接 Raspberry Pi 的 WI-FI


$ cat /etc/wpa_supplicant/wpa_supplicant.conf

$ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

$ sudo vim /etc/wpa_supplicant/wpa_supplicant.conf

在 Raspberry Pi 开机登录后,配置 .profiles 文件,使用 webhook 自动发送 IP 地址到钉钉群消息 🚀

$ ssh pi@raspberrypi.local

image

demos

$ sudo iwlist wlan0 scan > wifi-scan.md

$ cat ./wifi-scan.md | grep ESSID


image

$ ifconfig wlan0 | grep inet
$ ifconfig wlan0 | grep "inet "

$ ifconfig | grep "inet "

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!

refs

https://www.w3schools.com/nodejs/nodejs_raspberrypi.asp

https://www.cnblogs.com/xgqfrms/p/17323041.html



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2023-04-18 13:06  xgqfrms  阅读(104)  评论(0编辑  收藏  举报