如何在启动时自动运行shell(bash)脚本?


0

正如问题所述,登录操作系统后运行bash脚本的最佳/推荐方法是什么?我正在使用Ubuntu 10.04。

Answers:


2

.bash_profile如果您只想自己编辑/etc/profile,可以编辑,如果要为每个人强制执行,可以编辑。


2
那将是~/.bash_profile(即在主目录中,只是澄清)
大卫Z 2010年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.