摘要: 自己写一个shell脚本 chmod -x file.sh sudo cp file.sh /etc/profile.d/ 将写好的脚本(.sh文件)放到目录 /etc/profile.d/ 下,系统启动后就会自动执行该目录下的所有shell脚本。 阅读全文
posted @ 2023-01-07 17:59 Teot 阅读(292) 评论(0) 推荐(0) 编辑