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

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

image

solutions

sudo

$ sudo ifconfig

$ sudo iwconfig

$ sudo ipconfig

image

https://forums.raspberrypi.com/viewtopic.php?t=23405

.bashrc

  1. alias
$ vim ~/.bashrc
alias ifconfig='/sbin/ifconfig'

$ source ~/.bashrc

$ ifconfig

image

  1. /sbin/ifconfig
$ /sbin/ifconfig

image

  1. $PATH
$ vim ~/.bashrc
export PATH=$PATH:/sbin

$ source ~/.bashrc

$ ifconfig

image

https://stackoverflow.com/questions/24839810/ifconfig-command-not-found

demos

$PATH

$ vim ~/.bashrc
export PATH=$PATH:/sbin

$ source ~/.bashrc

$ ifconfig

image


$ 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

image

# ip ✅
$ open "eric@192.168.124.56" 22

image

test ✅

image

Linux shell commands

# ip ✅
$ sftp eric@192.168.124.56

image

# hostname ❓乱码
$ sftp eric@rpi3b.local

image

sftp> exit

image

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

refs



©xgqfrms 2012-2021

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

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


posted @   xgqfrms  阅读(7)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 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
点击右上角即可分享
微信分享提示