Ubuntu解决ifconfig command not found的办法

著名的linux 系统基本分两大类:

1.RedHat系列:RedHat / CentOS / Fedora等

2.Debian系列:Debian Ubuntu等

RedHat系列:

1.常见的安装包格式 rpm 包,安装 rpm 包命令是 “rpm -参数”

2.包管理工具yum

3.支持tar包

Debian系列:

1.常见的安装包格式 deb包,安装deb包命令是 “dpkg -参数”

2.包管理工具apt-get

3.支持tar包

Ubuntu不该用yum 改用apt-get

ifconfig 不能发现只需安装net-tools 即可

apt-get install net-tools

原文地址:https://www.cnblogs.com/kings0secret-cn/p/10352575.html

时间: 2024-08-30 16:42:08

Ubuntu解决ifconfig command not found的办法的相关文章

CentOS7下解决ifconfig command not found的办法

注:本办法仅限于可联网的机器,即在安装时设置了IP地址和DNS可正常上网. 解决办法如下: 1 进入  /etc/sysconfig/network-scripts/ifcfg-ens33 中 将 ONBOOT=no 改为 ONBOOT=yes 退出保存 2 重启网卡: service network restart 3 确认ifconfig命令是否未安装在sbin目录下输入ls,看又没有ifconfig.没有即为未安装4 安装net-tool插件,此插件中带有此命令安装命令: sudo yum

CentOS 7.0下解决ifconfig: command not found的方法

在CentOS7.0中输入ifconfig命令会遇到-bash: ifconfig: command not found. 在CentOS最小安装时是没有附带ifconfig,我们进入sbin目录下可以查看到ifconfig命令是没有安装的 因此这个时候我们只要安装net-tool插件,此插件中带有ipconfig命令 yum install -y net-tools 安装完成后,可以直接使用ifconfig命令了 原文地址:https://www.cnblogs.com/Chan94/p/10

CentOS7下解决ifconfig command not found

原文地址:https://blog.csdn.net/ryu2003/article/details/78492127 注:本办法仅限于可联网的机器,即在安装时设置了IP地址和DNS可正常上网. 解决办法如下: 1.输入ip addr 确认IP地址是否设置正常,设置好如下所示,如果没有获取到IP地址则设置一个即可. 2.确认sbin目录是否存在. cd /sbin 1 3.确认ifconfig命令是否未安装 在sbin目录下输入ls,可见下图所示,并没有ifconfig. 4.安装net-too

ifconfig出现bash: ifconfig:command not found解决办法之解决连环问题

Centos7中没有安装ifconfig命令的解决方法 在这之前,centos7最小化安装默认是不能联网的,首先必须切换到root用户,再解决网络问题 一.      切换到root用户 二.      解决网络问题 三.      安装ifconfig   一.切换到root用户 Linux下切换root用户提示Authentication failure错误的解决方法 第一种情况可能是root密码输入错误造成的,再仔细检查一遍是否输入错误 第二种是刚安装完,没有设置root用户密码导致的,

CentOS7 下ifconfig command not found解决办法

今天尝鲜用VMWare安装了CentOS7,选择了最小安装包模式,安装完毕之后想查看一下本机的ip地址,发现报错 # ifcon -bash: ifconfig: command not found 谷歌了一下,整理了一下解决思路 1. 查看ifconfig命令是否存在 查看 /sbin/ifconfig是否存在 2.如果ifconfig命令存在,查看环境变量设置 #echo $PATH 如果环境变量中没有包含ifconfig命令的路径 临时修改环境变量:在shell中输入 $export PA

【转载】bash: ifconfig: command not found 解决办法

原本使用ifconfig 可以使用,今天是怎么了,可能安装软件修改了,百度~~ [[email protected] /]$ ifconfig 提示:“bash: ifconfig: command not found” 于是我切换到root用户下 [[email protected] /]$ ifconfig 依然提示:“bash: ifconfig: command not found” 分析问题 1.whereis ifconfig 看一下这个命令在哪个目录下 2.echo $PATH 看

CentOS 7.6 最小安装 ifconfig command not found 及 yum 不可用的解决办法

问题描述 下载的是 CentOS 7.6 Everything 版本,在 VMware 12 上安装时软件选择"最小安装"后,输入 ifconfig 命令提示: bash ifconfig command not found 经搜索得知是由于没有安装 net-tools 工具的原因,于是使用 yum 命令安装,结果发现 yum 不可用. 再次搜索,才知道网卡配置没有开启. 解决方法 ip addr 查看网卡名称,第2个即是,我的网卡名称是 ens33 vi etc/sysconfig/

ifconfig: command not found 如何解决?

ifconfig: command not found 查看path配置(echo相当于c中的printf,C#中的Console.WriteLine) 1 echo $PATH 解决方案1:先看看是不是root用户,如果不是就 su 切换到root用户 su 解决方案2:(如果没看见 /sbin)[我们这显然不是这个问题] 这个一般都是因为配置没弄好,永久解决: 打开/etc/profile文件,在其中输入export PATH=$PATH:/sbin 解决方案3:(CentOS后来换指令了,

bash: ifconfig: command not found解决方法

1.问题: #ifconfig bash: ifconfig: command not found 2.原因:非root用户的path中没有/sbin/ifconfig ,其它的命令也可以出现这种情况,解决的方法是一样的. # whereis ifconfig #ifconfig位置 ifconfig: /sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz # echo $PATH /usr/kerberos/sbin:/usr/kerberos/bi