如何在登录是自动在终端运行一段指令
Tofloor
poster avatar
130******55
deepin
2017-12-15 05:20
Author
     我在/etc下建立了rc.local文件,然后把需要执行的代码放到里面,但是开机并没有执行?
所以,怎么在开机时执行一段命令?

Reply Favorite View the author
All Replies
avatar
comzhong
deepin
2017-12-15 07:01
#1
图形界面登录时,加载 /etc/prfile 和 ~/.profile

针对所有用户,写入/etc/prfile
针对当前用户,写入~/.profile
Reply View the author
avatar
wtz
deepin
2017-12-15 07:45
#2
Reply View the author