[Seek Help] source /etc/profile出错
Tofloor
poster avatar
wling
deepin
2021-01-20 07:43
Author

想安装java,终端输入source /etc/profile,

Reply Favorite View the author
All Replies
deepinuser17
deepin
2021-01-20 08:21
#1

/etc/profile是文本文件.  一般不能用文字处理器(WPS, LibreOffice, Microsoft Office)编辑, 存储.   文字处理器编辑过的文本文件会有隐含的字符.

 

为防止在文本文件里出现隐含字符, 最好使用文本文件编辑器, 如vim, nano, 深度编辑器(deepin-editor).

 

用vim打开/etc/profile, 输入":set list", 回车. 这个操作会显示所有隐含字符.  输入":q!"退出vim.

 

 

Reply View the author