①home目录创建自动运行的shell:
<DM8168># vi test.sh
②将test.sh移到/home/root下:
<DM8168># mv test.sh /home/root
③修改Profile文件:
<DM8168># vi /etc/profile
④结尾添加:
cd /home/root
sh test.sh
①home目录创建自动运行的shell:
<DM8168># vi test.sh
②将test.sh移到/home/root下:
<DM8168># mv test.sh /home/root
③修改Profile文件:
<DM8168># vi /etc/profile
④结尾添加:
cd /home/root
sh test.sh