How to fix iwconfig & ifconfig command not found bug after install zsh & Oh My Zsh on Raspberry Pi All In One
How to fix iwconfig & ifconfig command not found bug after install zsh & Oh My Zsh on Raspberry Pi All In One
Raspberry Pi
errors
$ ifconfig
zsh: command not found: ifconfig
$ iwconfig
zsh: command not found: iwconfig
$ ipconfig
zsh: command not found: ipconfig
solutions
sudo
$ sudo ifconfig
$ sudo iwconfig
$ sudo ipconfig
https://forums.raspberrypi.com/viewtopic.php?t=23405
.bashrc
alias
$ vim ~/.bashrc
alias ifconfig='/sbin/ifconfig'
$ source ~/.bashrc
$ ifconfig
/sbin/ifconfig
$ /sbin/ifconfig
$PATH
✅
$ vim ~/.bashrc
export PATH=$PATH:/sbin
$ source ~/.bashrc
$ ifconfig
https://stackoverflow.com/questions/24839810/ifconfig-command-not-found
demos
$PATH
✅
$ vim ~/.bashrc
export PATH=$PATH:/sbin
$ source ~/.bashrc
$ ifconfig
$ ifconfig
$ ifconfig | grep 192.
SFTP
# install FTP
$ sudo apt-get install vsftpd
# server / client
# $ sudo apt-get install filezilla
FileZilla 🚀
# hostname ❌
$ open "eric@rpi3b" 22
# ip ✅
$ open "eric@192.168.124.56" 22
test ✅
Linux shell commands
# ip ✅
$ sftp eric@192.168.124.56
# hostname ❓乱码
$ sftp eric@rpi3b.local
sftp> exit
https://www.cnblogs.com/xgqfrms/p/17267400.html
refs
©xgqfrms 2012-2021
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/18676024
未经授权禁止转载,违者必究!
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek “源神”启动!「GitHub 热点速览」
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· NetPad:一个.NET开源、跨平台的C#编辑器
2023-01-17 中文方言等级考试在线测试网站 All In One
2023-01-17 Build mock APIs in seconds All In One
2023-01-17 Flappy Bird Game All In One
2022-01-17 打开下载的 Excel 数据,在 macOS 上显示是颠倒的 All In One
2022-01-17 dayjs 时间格式化 All In One
2021-01-17 大学生免费编程学习资源汇总 All In One
2021-01-17 Node.js 文件上传 cli tools