Non-root user execution export error

Source: Internet
Author: User

Export:command not found

It's because I switched to the Admin user when I did the CentOS image (WhoAmI or root, it's weird)

Su switches to the root user.


Write it down this time, next time you meet this situation, you'll know what's going on.

[Email protected] bin]# export histtimeformat= "%f%t" Export:command not found.

[[email protected] bin]# Exportexport:command not found.

[email protected] bin]# which exportexport:command not found.

[[email protected] bin]# Fc-lfc:command not found.

[Email protected] bin]# Pwd/application/aleiye/enterprise/kafka/kafka_2.10-0.8.1.1/bin

[Email protected] bin]# Pwd/application/aleiye/enterprise/kafka/kafka_2.10-0.8.1.1/bin

[email protected] bin]# which pwd/bin/pwd

[email protected] bin]# which exportexport:command not found.

[[email protected] bin]# Exportexport:command not found.

[[email protected] bin]# w 03:45:04 up 4 days,  9:08,   2 users,  load average: 0.08, 0.03, 0.00user      tty      from               [email protected]   idle   jcpu   pcpu  WHATroot     tty1     :0                29jul15 10days 55.45s 55.45s / usr/bin/xorg :0 -br -verbose -audit 4 -auth /var/run/gdm/ auth-for-gdm-1bqpck/database -nolisten tcp vt1root     pts/1     10.211.55.2      Sat13    1.00s   0.99s  0.19s w

[[email protected] bin]# whoroot tty1 2015-07-29 20:23 (: 0) Root pts/1 2015-08-08 13:47 (10.211.55.2 )

[Email protected] bin]# Whoamiroot

[[Email protected] bin]# type Exporttype:command not found.

[[email protected] bin]# Typetype:command not found.

[[email protected] bin]# Aaaaaa:command not found.

[[email protected] bin]# whoroot tty1 2015-07-29 20:23 (: 0) Root pts/1 2015-08-08 13:47 (10.211.55.2 )

[email protected] bin]# which exportexport:command not found.

[email protected] bin]# which who/usr/bin/who

[email protected] bin]# which aaaaaa:command not found.

[Email protected] bin]# Pwd/application/aleiye/enterprise/kafka/kafka_2.10-0.8.1.1/bin

[Email protected] bin]# Whoamiroot

[email protected] bin]# su

[[Email protected] bin]# exportdeclare -x classpath=].:/ application/aleiye/enterprise/jdk/jdk1.7.0_65/lib/dt.jar:/application/aleiye/enterprise/jdk/jdk1.7.0_65/lib/ Tools.jar "declare -x cvs_rsh=" ssh "declare -x group=" root "declare -x g_broken_ filenames= "1" declare -x hadoop_conf= "/application/aleiye/enterprise/hadoop/hadoop-2.5.0-cdh5.3.0/etc /hadoop "Declare -x hadoop_home="/application/aleiye/enterprise/hadoop/hadoop-2.5.0-cdh5.3.0 "declare  -x histcontrol= "ignoredups" declare -x histsize= "declare -x home="/root " Declare -x host= "Aleiye" declare -x hostname= "Aleiye" declare -x hosttype= "x86_64- Linux "Declare -x java_home="/application/aleiye/enterprise/jdk/jdk1.7.0_65 "Declare -x LANG = "ZH_CN." UTF-8 "Declare -x lessopen=" | | /usr/bin/lesspipe.sh %s "declare -x logname=" root "declare -x ls_colors=" rs=0:di=38;5; 27: ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5; 232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5; 16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lzh= 38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.zip=38;5;9:*.z=38;5;9:*. z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lz=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.bz=38;5;9:* . tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.rar=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38 ; 5;9:*.rz=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38 ; 5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*. svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5; 13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc= 38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv= 38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au =38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:* . ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45: "declare -x  Machtype= "x86_64" declare -x mail= "/var/spool/mail/root" Declare -x mysql_home= "/Application /aleiye/enterprise/mysql/mysql-5.6.22-linux-glibc2.5-x86_64 "declare -x oldpwddeclare -x  Ostype= "Linux" declare -x path= "/application/aleiye/enterprise/mysql/mysql-5.6.22-linux-glibc2.5-x86_ 64/bin:/application/aleiye/enterprise/mysql/mysql-5.6.22-linux-glibc2.5-x86_64/bin:/application/aleiye/ enterprise/pig/pig-0.12.0-cdh5.3.0/bin:/application/aleiye/enterprise/hadoop/hadoop-2.5.0-cdh5.3.0/bin:/application/aleiye/enterprise/ scala/scala-2.11.4/bin:/application/aleiye/enterprise/mysql/mysql-5.6.22-linux-glibc2.5-x86_64/bin:/ application/aleiye/enterprise/jdk/jdk1.7.0_65/bin:/application/aleiye/enterprise/jdk/jdk1.7.0_65/bin:/ application/aleiye/enterprise/jdk/jdk1.7.0_65/bin:/application/aleiye/enterprise/pig/pig-0.12.0-cdh5.3.0/bin:/ application/aleiye/enterprise/hadoop/hadoop-2.5.0-cdh5.3.0/bin:/application/aleiye/enterprise/scala/ scala-2.11.4/bin:/application/aleiye/enterprise/mysql/mysql-5.6.22-linux-glibc2.5-x86_64/bin:/application/ aleiye/enterprise/jdk/jdk1.7.0_65/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/ Sbin:/usr/bin:/root/bin "Declare -x pig_home="/application/aleiye/enterprise/pig/pig-0.12.0-cdh5.3.0 " Declare -x pwd= "/application/aleiye/enterprise/kafka/kafka_2.10-0.8.1.1/bin" declare -x  Qtdir= "/usr/lib64/qt-3.3" declare -x qtInc= "/usr/lib64/qt-3.3/include" declare -x qtlib= "/usr/lib64/qt-3.3/lib" declare -x  Remotehost= "10.211.55.2" declare -x scala_home= "/application/aleiye/enterprise/scala/scala-2.11.4" Declare -x selinux_level_requested= "" Declare -x selinux_role_requested= "" declare -x  selinux_use_current_range= "" Declare -x shell= "/bin/bash" declare -x shlvl= "3" declare  -x ssh_askpass= "/usr/libexec/openssh/gnome-ssh-askpass" declare -x ssh_client= "10.211.55.2  61651 22 "declare -x ssh_connection=" 10.211.55.2 61651 10.211.55.10 22 " Declare -x ssh_tty= "/DEV/PTS/1" declare -x term= "Xterm-256color" declare -x USER= " Root "declare -x vendor=" Unknown "

[Email protected] bin]# Pwd/application/aleiye/enterprise/kafka/kafka_2.10-0.8.1.1/bin

[Email protected] bin]# Whoamiroot

[[email protected] bin]# which aa/usr/bin/which: no aa in  (/ application/aleiye/enterprise/mysql/mysql-5.6.22-linux-glibc2.5-x86_64/bin:/application/aleiye/enterprise/ mysql/mysql-5.6.22-linux-glibc2.5-x86_64/bin:/application/aleiye/enterprise/pig/pig-0.12.0-cdh5.3.0/bin:/ application/aleiye/enterprise/hadoop/hadoop-2.5.0-cdh5.3.0/bin:/application/aleiye/enterprise/scala/ scala-2.11.4/bin:/application/aleiye/enterprise/mysql/mysql-5.6.22-linux-glibc2.5-x86_64/bin:/application/ aleiye/enterprise/jdk/jdk1.7.0_65/bin:/application/aleiye/enterprise/jdk/jdk1.7.0_65/bin:/application/aleiye/ enterprise/jdk/jdk1.7.0_65/bin:/application/aleiye/enterprise/pig/pig-0.12.0-cdh5.3.0/bin:/application/aleiye/ Enterprise/hadoop/hadoop-2.5.0-cdh5.3.0/bin:/application/aleiye/enterprise/scala/scala-2.11.4/bin:/application /aleiye/enterprise/mysql/mysql-5.6.22-linux-glibc2.5-x86_64/bin:/application/aleiye/enterprise/jdk/jdk1.7.0_65 /bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/Usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) 

[[email protected] bin]# which aaads/usr/bin/which: no aaads in  (/ application/aleiye/enterprise/mysql/mysql-5.6.22-linux-glibc2.5-x86_64/bin:/application/aleiye/enterprise/ mysql/mysql-5.6.22-linux-glibc2.5-x86_64/bin:/application/aleiye/enterprise/pig/pig-0.12.0-cdh5.3.0/bin:/ application/aleiye/enterprise/hadoop/hadoop-2.5.0-cdh5.3.0/bin:/application/aleiye/enterprise/scala/ scala-2.11.4/bin:/application/aleiye/enterprise/mysql/mysql-5.6.22-linux-glibc2.5-x86_64/bin:/application/ aleiye/enterprise/jdk/jdk1.7.0_65/bin:/application/aleiye/enterprise/jdk/jdk1.7.0_65/bin:/application/aleiye/ enterprise/jdk/jdk1.7.0_65/bin:/application/aleiye/enterprise/pig/pig-0.12.0-cdh5.3.0/bin:/application/aleiye/ Enterprise/hadoop/hadoop-2.5.0-cdh5.3.0/bin:/application/aleiye/enterprise/scala/scala-2.11.4/bin:/application /aleiye/enterprise/mysql/mysql-5.6.22-linux-glibc2.5-x86_64/bin:/application/aleiye/enterprise/jdk/jdk1.7.0_65 /bin:/usr/lib64/qt-3.3/bin:/usr/local/Sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) 

[[email protected] bin]# which export/usr/bin/which: no export in  (/ application/aleiye/enterprise/mysql/mysql-5.6.22-linux-glibc2.5-x86_64/bin:/application/aleiye/enterprise/ mysql/mysql-5.6.22-linux-glibc2.5-x86_64/bin:/application/aleiye/enterprise/pig/pig-0.12.0-cdh5.3.0/bin:/ application/aleiye/enterprise/hadoop/hadoop-2.5.0-cdh5.3.0/bin:/application/aleiye/enterprise/scala/ scala-2.11.4/bin:/application/aleiye/enterprise/mysql/mysql-5.6.22-linux-glibc2.5-x86_64/bin:/application/ aleiye/enterprise/jdk/jdk1.7.0_65/bin:/application/aleiye/enterprise/jdk/jdk1.7.0_65/bin:/application/aleiye/ enterprise/jdk/jdk1.7.0_65/bin:/application/aleiye/enterprise/pig/pig-0.12.0-cdh5.3.0/bin:/application/aleiye/ Enterprise/hadoop/hadoop-2.5.0-cdh5.3.0/bin:/application/aleiye/enterprise/scala/scala-2.11.4/bin:/application /aleiye/enterprise/mysql/mysql-5.6.22-linux-glibc2.5-x86_64/bin:/application/aleiye/enterprise/jdk/jdk1.7.0_65 /bin:/usr/lib64/qt-3.3/bin:/usr/locaL/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) 

[Email protected] bin]# fc-l995 uname-a996 cat/etc/redhat-release997 xkill998 export999 pwd1000 whoami1001 which aa100 2 which aaads1003 which export1004 cat/etc/system-release1005 history | grep export1006 History | grep FORMAT1007 export histtimeformat= "%f%t" 1008 history1009 ww1010 History


Non-root user execution export error

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.