ubuntu18.04 出现 Command 'ifconfig' not found 问题的解决办法

我们在虚拟主机中查看ip地址需要输入ifconfig,但是报以下错误:

系统提示我们安装 net-tools,当我们输入以下命令,即可安装完成。

 sudo apt-get install net-tools

然后再输入命令ifconfig即可看到虚拟机的ip地址

ubuntu18.04 出现 Command 'ifconfig' not found 问题的解决办法

原文地址:https://www.cnblogs.com/swjian/p/9197543.html

时间: 2024-08-07 18:41:32

ubuntu18.04 出现 Command 'ifconfig' not found 问题的解决办法的相关文章

source command not found in sh shell解决办法

在Ubuntu系统中执行脚本的时候突然出现错误"source command not found in sh shell" 这个其实在Ubuntu 当中 执行脚本默认的使用的是dash,而非bash 通过命令 #ls -l `which sh` # /bin/sh -> dash 我们发现, 脚本中默认使用的sh其实对应的是dash, 而不是bash. 为了解决这个错误我们就需要把这个对应关系修改下, 让sh对应到bash 执行以下命令, 在弹出的框里面选择No即可把sh对应的链

ubuntu 14.04 ns2.35 ***buffer overflow detected **: ns terminated解决办法

1.按照如下教程安装 Install With Me !: How to Install NS-2.35 in Ubuntu-13.10 / 14.04 (in 4 easy steps) 2.运行一个例子程序时出现 ***buffer overflow detected **: ns terminated 3.参考现有方案出现,gcc error:4.4没有那个文件或目录 sudo apt-get intall gcc-4.4 sudo apt-get intall g++-4.4 修改tcl

Warning: Using a password on the command line interface can be insecure.解决办法

转自 http://www.cnblogs.com/sunss/p/6256706.html 被一个小朋友问到,直接公布答案: If your MySQL client/server version is a 5.6.x a way to avoid the WARNING message are using the mysql_config_editor tools: mysql_config_editor set --login-path=local --host=localhost --u

ubuntu (优麒麟15.04)更新后不能连接无线网暂时的解决办法

1.以后坚决不随便更新了,又不是非要用新版本的某个功能 2.更新重启后: (1)查了,已经把禁止的都改成NO,还是不行: 这岂不是要把时间都耽搁弄这个上了... 3.发现了一个可以暂时解决的方案 在启动的时候选之前的版本,OK 可以继续工作了. ps:谁知道问题的原因,或根本解决的方法步骤请不吝赐教.

Ubuntu 14.04 LTS关于缺少libglut.so.3的解决办法

小白在使用asy作图时,发现编译时出现了问题,问题如下: $ asy -V -f pdf 2-10.asy asy: error while loading shared libraries: libglut.so.3: cannot open shared object file: No such file or directory 提示缺少libglut.so.3的库,于是就搜索了一下关于glut相关的包, $ sudo apt-cache search glut |grep glut fr

ubuntu16.04下安装wps出现的问题及其解决办法

我用的输入法框架是:fcitx的,输入法是搜狗的. wps无法输入中文解决办法 /etc/bash.bashrc里添加,然后. /etc/bash.bashrc就可以了,实测,说白了就是添加几个环境变量. export XIM="fcitx" export XIM_PROGRAM="fcitx" export XMODIFIERS="@im=fcitx" export GTK_IM_MODULE="fcitx" export

Ubuntu 16.04系统下软件中心Software闪退解决办法

按住Ctrl+Alt+T打开终端输入: sudo apt-get update //更新 sudo apt-get dist-upgrade //升级 sudo apt-get install --reinstall software-center //重新安装 重新打开软件中心Software即可解决闪退问题:

Ubuntu16.04菜单栏出现两个输入法图标的解决办法

安装搜狗输入法更新系统后,菜单栏出现两个输入法图标. 这两个图标一个是搜狗用的fcitx-ui-classic,另一个是fcitx的fcitx-ui-qimpanel. 而删除 fcitx-ui-qimpanel,只保留 fcitx-ui-classic就可以解决问题了,打开终端执行: sudo apt-get remove fcitx-ui-qimpanel 注销或重启系统即可. 原文地址:https://www.cnblogs.com/liuwei0773/p/9418213.html

ubuntu18.04 不能连接互联网的问题

通过如下命令安装connman会导致ubuntu18.04不能连接互联网 sudo apt install connman 解决办法: 通过如下命令卸载connman sudo apt-get purge connman sudo apt-get purge --auto-remove connman 原文地址:https://www.cnblogs.com/guagua2016/p/12681873.html