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.

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

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 @ 2025-01-17 02:59  xgqfrms  阅读(40)  评论(0)    收藏  举报