Ubuntu中没有查看IP的(ifconfig)命令

Ubuntu系统中没有ifconfig命令

刚安装完成的Ubuntu系统中有的没有安装工具包,所以会出现某些命令无法使用的情况,比如ifconfig命令等。
在这里插入图片描述
出现这样的提示就是说没有找到ifconfig的命令,可以进行安装,按照提示中的命令安装相关的工具包
命令:

sudo apt install net-tools           //使用apt源安装net-tools工具包

在这里插入图片描述

Ubuntu,如果在命令输入"ifconfig"命令时出现"command not found"的错误提示,这意味着系统没有安装ifconfig命令或者该命令不在系统的可执行路径。 为了解决这个问题,你可以执行以下操作: 1. 确认是否安装了ifconfig命令。你可以尝试使用以下命令来安装ifconfig命令:sudo apt install net-tools。 如果已经安装了ifconfig命令,那么可能是因为系统的可执行路径没有包含该命令。你可以通过运行which ifconfig命令查看ifconfig命令的路径。 2. 如果ifconfig命令确实没有被安装,你可以使用以下命令来安装它:sudo apt install net-tools。这将安装net-tools软件包,其包含了ifconfig命令。 总结起来,如果在Ubuntu出现"command not found: ifconfig"的错误提示,你可以先尝试安装net-tools软件包,然后再运行ifconfig命令。如果问题仍然存在,请确保你的系统没有其他配置问题,并且可以尝试重新安装Ubuntu或者与Ubuntu的支持团队联系以获取进一步的帮助。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [ubuntu无法找到ifconfig(command not found: ifconfig)](https://blog.csdn.net/martinkeith/article/details/121220709)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* [ubuntu找不到ifconfig](https://blog.csdn.net/qq_44774198/article/details/126370361)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值