简体   繁体   中英

Run a script automatically after logging into redhat

伙计们,我想知道如何在自动登录后启动一个脚本,说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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM