shell登陆和非shell登陆

shell登陆: 其实就是使用账号密码的形式进行登陆linux
非shell登陆: 使用ssh的方式进行登陆 linux

说明:
使用shell登陆的方式是会自动加载/etc/profile文件中的内容,也会去刷新/etc/profile.d/中的所有*.sh文件;
而使用非shell登陆并不会去自动加载/etc/profile 文件中的内容,但是会刷新/etc/profile.d/*.sh文件

综上所诉: 还是使用将环境放在/etc/profile.d/*.sh的脚本中,更加的方便快捷一点

Guess you like

Origin blog.csdn.net/First_____/article/details/121384445