Get file permissions: chmod +x ./XXX.sh
Check the operating system on which this document was edited: :set ff?
Modify the system format: :set ff=unix save and exit
kill thread kill -9 pid
Version switching of mac jdk: http://www.cnblogs.com/maxinliang/p/4389971.html
System configuration /etc/profile permissions:
sudo vi /etc/profile
i
Exit after modification
Modify the file to take effect: source /etc/profile