source一下你那个脚本 Plain Text code?1. ./test.sh
引用 3 楼 linwhwylb 的回复:只能在当前shell环境和子shell当中有效。 那我在/etc/rc.local中加上这一句,是否下次启动的时候会生效呢?
只能在当前shell环境和子shell当中有效。
. ./test.sh
23,121
社区成员
74,508
社区内容
加载中
试试用AI创作助手写篇文章吧