Modified the profile file in the linux system-Linux general technology-Linux technology and application information. The following is a detailed description. Today, the/etc/profile file has been accidentally modified due to the setting of JAVA environment variables. As a result, the system prompts:-bash:/etc/profile: line 56: syntax error: unexpected end of file
I don't know what the problem is. the last part of my profile is:
Export JAVA_HOME = "/usr/java/jdk1.6.0 _ 02"
Export CLASSPATH = "/usr/java/jdk1.6.0 _ 02/lib:/usr/java/jdk1.6.0 _ 02/jre/lib"
Pathmunge/usr/java/jdk1.6.0 _ 02/jre/bin:/usr/java/jdk1.6.0 _ 02/jre/bin
Export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
For I in/etc/profile. d/*. sh; do
If [-r "$ I"]; then
. $ I
Fi
Done
Unset I
Unset pathmunge
Please help me analyze and analyze. Although this does not affect my normal login, it always gives a bad feeling! Thank you ~!
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