伙计们,我想知道如何在自动登录后启动一个脚本,说hello root
提前致谢
以 root 身份登录,如果您使用 bash,请编辑~/.bashrc
文件以在文件末尾包含行echo "hello root"
。
Just put your script inside ~/.bash_profile
and it'll be launched after that user logs in.
Check out man bash
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.