linux 用户切换su 命令横杠的作用 . 最近老有同事问起这些问题,所以总结一下。 1. 首先用help理解su, sudo su, sudo 2. 其次理解"login shell" and "interactive shell". "When Bash starts executes the commands in a variety of different scripts. (1) When started as an interactive login shell: Bash reads and executes the /etc/profile (if it exists). After reading that file, it looks for ~/.bash_pr...