Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
如何在登录是自动在终端运行一段指令
Experiences and Insight
907
views ·
2
replies ·
To
floor
Go
130******55
deepin
2017-12-15 05:20
Author
我在/etc下建立了rc.local文件,然后把需要执行的代码放到里面,但是开机并没有执行?
所以,怎么在开机时执行一段命令?
Reply
Like 0
Favorite
View the author
All Replies
comzhong
deepin
2017-12-15 07:01
#1
图形界面登录时,加载 /etc/prfile 和 ~/.profile
针对所有用户,写入/etc/prfile
针对当前用户,写入~/.profile
Reply
Like 0
View the author
wtz
deepin
2017-12-15 07:45
#2
参考:
https://bbs.deepin.org/post/149874
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Looking Deepin ci 25.2.0 Developer/Unstable repositories
Popular Events
More
所以,怎么在开机时执行一段命令?