linux开机启动脚本
- 将自己写好的脚本或命令写入/etc/rc.local文件中,系统会根据该文件来启动该命令或脚本
$ echo "..." >> /etc/rc.local $ tail -1 /etc/rc.local - 在home/用户/.bash_profile(.profile)文件中加入脚本或命令,只能在单用户login时启动,并不是linux启动时启动
$ echo "cairo-dock" >> ~/.profile
$ echo "..." >> /etc/rc.local
$ tail -1 /etc/rc.local
$ echo "cairo-dock" >> ~/.profile