我有一个shell脚本,我想每次用户login时运行。 我使用Ubuntu作为操作系统。 该脚本应该在用户login到Ubuntu后运行。
谢谢你的帮助
在Ubuntu中,每当用户login时都会运行放在/etc/profile.d/以.sh结尾的任何脚本。这就是/etc/profile第4-11行。
/etc/profile.d/
.sh
/etc/profile
看看/ etc / profile