小编use*_*734的帖子

登录时自动运行 bash 脚本

我想制作一个在登录时自动运行的脚本,所以我将它放入文件中~/bash.profile,但它没有运行。当我把它放在 bashrc 中时,它在打开终端时运行。

我在脚本中所做的是访问图片文件夹中的文件。我刚刚添加./script.sh~/.bash_profile. 如何让它在登录时运行?

我在 Ubuntu 11.10 上使用 Unity。

bash login ubuntu profile unity

4
推荐指数
1
解决办法
4万
查看次数

标签 统计

bash ×1

login ×1

profile ×1

ubuntu ×1

unity ×1