ifconfig: command not found(CentOS專版,其他的可以參考)
ifconfig: command not found
檢視path配置(echo相當於c中的printf,C#中的Console.WriteLine)
echo $PATH
解決方案1:先看看是不是root使用者,如果不是就 su 切換到root使用者
su
解決方案2:(如果沒看見 /sbin)【我們這顯然不是這個問題】
這個一般都是因為配置沒弄好,永久解決:
開啟/etc/profile檔案,在其中輸入export PATH=$PATH:/sbin
解決方案3:(CentOS後來換指令了,看看我們是不是【ifconfig==>ip】)
在 /(根目錄)裡面查詢 name(名字)是 ifconfig 的東東
說明ifconfig真的換了,淡定
看看資訊
ip addr
發現木有(看 2:eth0 沒有ipv4)
跳轉到 /etc/sysconfig/network-scripts 目錄
cd /etc/sysconfig/network-scripts
按 i 進去編輯模式 ,修改箭頭處,然後按 esc 退回命令模式,輸入:wq 並回車
重啟一下
reboot
用root使用者登陸後 輸入
ip addr
成功!!
解決方案4:(網路)
yum install setuptool
如想配置IP,安裝system-config-network-tui即可。
yum install system-config-firewall-tui安裝圖形化Firewall配置工具。
yum list system-config* 全部安裝。
參考:http://blog.csdn.net/johnstrive/article/details/5625121
相關推薦
ifconfig: command not found(CentOS專版,其他的可以參考)
ifconfig: command not found 檢視path配置(echo相當於c中的printf,C#中的Console.WriteLine) echo $PATH 解決方案1:先看看是不是root使用者,如果不是就 su 切換到root使用者 su 解決方案
Linux下command not found(以CentOS下沒有telnet為例)
裏的 linu com ins net 文件 bsp netd mman [[email protected]/* */ ~]# telnet bash: telnet: command not found rpm -qa telnet* //查詢是否安裝了
ifconfig命令無法找到,提示bash: ifconfig: command not found
pat sso and not found then 找不到文件 打開 分享 註銷 問題就是題目那樣,具體解決方法截圖如下: 分析問題 1.whereis ifconfig 看一下這個命令在哪個目錄下 2.echo $PATH 看一下該目錄是否在路經下,註意lunux下是
【linux】CentOS 7 使用ifconfig命令報錯:-bash: ifconfig: command not found;ip/ifcongif命令檢視網路資訊的使用
目錄 一、ip命令檢視網路資訊 二、CentOS 7啟用ifconfig命令 三、ifconfig命令檢視網路資訊 一、ip命令檢視網路資訊 (1)輸入命令檢視網絡卡資訊,找到網絡卡名稱,可以看到該網絡卡已經分配到IP地址,輸入命令: ip addr &nbs
【學習筆記】CentOS 7.5 網路連線問題:ifconfig command not found解決
問題描述 在VMware上裝的CentOS-7-x86_64-DVD-1804.iso,網上搜了一下原因,可能是CentOS 7.5的最小化安裝少了一些工具,比如 ifconfig 及 netstat 等。因此解決辦法很簡單,把它們安裝上就好了。首先判斷一下是不
CentOS 7 下 ifconfig command not found 解決辦法
用VMWare安裝了CentOS7,選擇了最小安裝包模式,安裝完畢之後想檢視一下本機的ip地址,發現報錯 # ifcon -bash: ifconfig: command not found 谷歌了一下,整理了一下解決
CentOS 7.0下解決ifconfig: command not found的方法
使用 最小 分享圖片 bin ifconf src mman 技術 centos 在CentOS7.0中輸入ifconfig命令會遇到-bash: ifconfig: command not found。 在CentOS最小安裝時是沒有附帶ifconfig,我們
sudo: pip: command not found in CentOS
pre 命令 path sudo clas gpo true not pytho vim /etc/sudoers 在 Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin 後面添加上找不到的那條命令的路徑,例如/
debian9 關於ifconfig命令找不到的問題(bash ifconfig:command not found)
##ifconfig bash ifconfig:command not found. 1,首先,很多解釋是,現在的linux系統都不適用net-tools工具了,所以找不到ifconfig,需要安裝net-tools,即 #sudo apt install net-tools就可以了,如
CentOS7下解決ifconfig command not found的辦法(轉)
解決辦法如下: 1、輸入ip addr 確認IP地址是否設定正常,設定好如下所示,如果沒有獲取到IP地址則設定一個即可。 2、確認sbin目錄是否存在。 cd /sbin 1 3、確認ifconfig命令是否未安裝 在sbin目錄下輸入ls,
解決:-bash: unzip: command not found (Linux 中 unZip/Zip 的安裝及使用)(轉)
【轉自:http://ju.outofmemory.cn/entry/315349】 Linux系統沒有自帶的壓縮解壓工具;需要我們自己安裝; 當用到zip或者unzip如果沒有安裝就會出現 unzip: Command Not Found 或 zip: Command Not Found
Docker的ubuntu映象無ifconfig和ping命令 bash: ifconfig: command not found
https://blog.csdn.net/guizaijianchic/article/details/78137474 通過whereis ifconfig發現根本就沒有安裝這個命令,需要自己安裝 apt-get update apt install net-tools #
ifconfig command not found
問題:在red hat enterprise linux 5中查詢IP地址時,輸入ifconfig命令報錯:“ifconfig: command not found”原因:ifconfig命令所在路徑/sbin未包含在系統環境變數PATH中解決方法:1. 直接輸入:/sbi
提示:“bash: ifconfig: command not found”
提示:“bash: ifconfig: command not found” 切換到root使用者下安裝YUM源 [[email protected] /]# yum install net-tools 安裝過程中會提示[[email protected] /]# …
解決make:arm-linux-gcc :command not found(有效)
錯誤提示: arm-linux-gcc: Command not found 原因: 1)沒有在~/.bashrc 或者/etc/environment中新增交叉編譯工具鏈bin檔案路徑 解決方法: ①使用sudo tar xjvf xxxxxxxxx.tar.bz
Command Line Client(建庫,建表)
Enter password: ******Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 7Server version: 5.1.55-community MySQL Community
【Grub & Grub2】萬能優盤啟動盤 (WinPE、LinuxPE)-- 方法1 U盤三分割槽法(不推薦,供參考)
由於工作需要,經常使用Windows和Linux雙系統,系統使用過程中,個人涉及到的開發軟體過多(光基於Eclipse的IDE就有好幾個),經常過度安裝軟體,有時會越來越龐大,越來越不穩定,定期要重新安裝配置,但是又不想重頭安裝,基本軟體最好先配置好備份一下,
解決Centos 7不能聯網且輸入ifconfig出現command not found
centos 7 無法聯網 無法獲得ip地址 在VMware Workstation中,以最小化方式安裝Centos 7後,發現無法獲得IP地址進行上網,這是因為Centos 7默認網卡未被激活。此外,在sbin目錄中沒有ifconfig文件,這是因為Centos 7已經不使用ifconfig命令
CentOS下ifconfig出現“command not found”
CentOS ifconfig ifconfig命令提示“command not found”,推測是安裝的時候選擇了最小安裝造成的。 查看/sbin目錄下是否存在ifconfig:ls /sbin發現不存在ifconfig 修改網卡配置:vi /etc/sysconfig/network-scri
Linux Centos安裝jdk 之前照著網上安裝了好多次 結果都是javac編譯失敗,出現javac :command not found
根據師父的描述是我少安裝了java jdk的依賴包。 解決方法如下: 先解除安裝open-jdk yum -y remove java-1.8.0-openjdk* //解除安裝所有openjdk檔案 yum -y remove tzdata-java.noarc