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.

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 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

# 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
未经授权禁止转载,违者必究!

浙公网安备 33010602011771号