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