---
title: "ifconfig命令不能正常使用的解决"
author: "alpha2009"
date: "2010-12-07T15:19:28Z"
tags: []
categories: ["操作系统"]
slug: "ifconfig"
draft: false
lastmod: "2010-12-07T15:20:13Z"
id: 835692
url: "https://alpha2009.iteye.com/blog/835692"
---

在Linux Fredoa系统中默认ifconfig命令不能正常使用，解决方法：

让ifconfig命令起效的方式（配置环境变量）  
(1)vi .bash\_profile  
  修改内容:PATH=原有部分+:$HOME/bin:/sbin  
(2)让配置文件生效并测试：  
  echo $PATH  
  ifconfig(不能执行)  
  source .bash\_profile  
  echo $PATH  
  ifconfig(此时已能够执行)