Linux command line error:-bash:xxx:command not found, workaround reference

Source: Internet
Author: User
Related Errors

Search the Internet for similar error resolution, although the error is different, but the solution can be learned.

CentOS command line Bash:.....:command not found solution


Uset:command not found


Resolution CentOS Hint:-bash:man:command not found


my mistake.

When you install the JDK in CentOS,

Modify the configuration file and enter the command:

Recompile after modification, enter the command:

Source/etc/profile

My CentOS error message is:-bash:unset:command not found

-bash:unset:command not found


Solving method

Finally found the cause of the error, the unset changed to unset.


This will compile correctly.


configuration Information

Information in the/etc/profile

# System wide environment and startup programs, for login Setup # functions and aliases Go IN/ETC/BASHRC # It's not a go OD idea to the change this file unless your know what you # are doing. It's much better to create a custom.sh shell script in #/etc/profile.d/to make custom changes to your environment, as th

is # would prevent the need for merging in future updates.
        Pathmunge () {case ": ${path}:" In *: "$":*) * If ["$" = "after"]; Then path= $PATH: $ else path=$1: $PATH fi Esac} if [-x/usr /BIN/ID]; Then if [-Z "$EUID"]; Then # Ksh workaround euid= ' id-u ' uid= ' id-ru ' fi user= ' Id-un ' "Logname= $USER M Ail= "/var/spool/mail/$USER" fi # Path manipulation if ["$EUID" = "0"];
    Then Pathmunge/sbin pathmunge/usr/sbin pathmunge/usr/local/sbin else Pathmunge/usr/local/sbin after Pathmunge/usr/sbin after PAthmunge/sbin after fi hostname= '/bin/hostname 2>/dev/null ' histsize=1000 if ["$HISTCONTROL" = "ignorespace"]; Then export histcontrol=ignoreboth else Export histcontrol=ignoredups fi export PATH USER LOGNAME MAIL HOSTNAME H Istsize Histcontrol # By default, we want Umask to get set. This sets it to login Shell # current threshold for system reserved Uid/gids are # you could check Uidgid reservation Validity in #/usr/share/doc/setup-*/uidgid file if [$UID-gt 199] && [' id-gn '] = ' id-un ']; Then Umask 002 Else umask 022 fi for I in/etc/profile.d/*.sh; do if [-R "$i"]; Then if ["${-#*i}"!= "$-"]; Then. "$i" else. "$i" >/dev/null 2>&1 fi fi done unset i unset-f pathmunge export JAVA_HOME=/USR/LOCAL/SRC/JAVA/JDK /JDK1.7.0_71 export path= $PATH: $JAVA _home/bin


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.