1.问题: #ifconfig bash: ifconfig: command not found 2.原因:非root用户的path中没有/sbin/ifconfig ,其它的命令也可以出现这种情况,解决的方法是一样的. # whereis ifconfig #ifconfig位置 ifconfig: /sbin/ifconfig /usr/share/man/man8/ifconfig..gz # echo $PATH /usr/kerberos/sbin:/usr/kerberos/bin…
原本使用ifconfig 可以使用,今天是怎么了,可能安装软件修改了,百度~~ [oracle@localhost /]$ ifconfig 提示:“bash: ifconfig: command not found” 于是我切换到root用户下 [root@localhost /]$ ifconfig 依然提示:“bash: ifconfig: command not found” 分析问题 1.whereis ifconfig 看一下这个命令在哪个目录下 2.echo $PATH 看一下该目…
Centos7中没有安装ifconfig命令的解决方法 在这之前,centos7最小化安装默认是不能联网的,首先必须切换到root用户,再解决网络问题 一.      切换到root用户 二.      解决网络问题 三.      安装ifconfig   一.切换到root用户 Linux下切换root用户提示Authentication failure错误的解决方法 第一种情况可能是root密码输入错误造成的,再仔细检查一遍是否输入错误 第二种是刚安装完,没有设置root用户密码导致的,…
在oracle用户下输入:sqlplus 抛出bash: sqlplus: command not found 解决办法: 在root用户下输入如下命令: ln -s $ORACLE_HOME/bin/sqlplus /usr/bin 这样就可以了.…
原文转自:http://www.cnblogs.com/ahauzyy/archive/2013/04/25/3043699.html 今天在搭建hadoop的开发环境中,用的是centsos6.0的操作系统,由于选安装时选的是最小安装.在配置Master无密码登录时,敲ssh命令时出现 1 -bash: ssh: command not found 最后在网上找到的解决方法为 1 yum -y install openssh-clients…
利用unzip命令解压缩的时候,出现-bash: unzip: command not found的错误. unzip——命令没有找到,其原因肯定是没有安装unzip.利用一句命令就可以解决了. 命令是:yum install -y unzip zip 安装成功后就可以使用unzip命令了.…
下载安装wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate tar -axf pip-1.5.4.tar.gz cd pip-1.5.4/ python setup.py install 安装完后,使用 pip -V 报错,如下:bash: pip: command not fou…
在CentOS虚拟机使得lspci查看硬件信息.使用时,提示bash: lspci: command not found,大多使用/sbin/lspci即可,我发现我的系统中/sbin下也没有.使用yum install lspci显示没有这个包. #yum whatprovides */lspci pciutils-3.1.4-9.el6.x86_64 : PCI bus related utilities Repo        : base Matched from: Filename  …
先用:echo $PATH 查看path是否含有:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin如果没有先用临时环境变量(重启后消失)#export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin然后就可以用那些命令了,进去修改永久环境变量…
bash: sqlplus: command not found 解决方法 注:本文来源于 <   bash: sqlplus: command not found 解决方法   > 1:问题情况: 2:问题处理 1: 环境变量已经配好,但是仍报错: [oracle@dg1 ~]$ vi .bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi #…