linux开机启动脚本

开机启动脚本

  1. 将自己写好的脚本或命令写入/etc/rc.local文件中,系统会根据该文件来启动该命令或脚本
    $ echo "..." >> /etc/rc.local
    $ tail -1 /etc/rc.local
    
  2. 在home/用户/.bash_profile(.profile)文件中加入脚本或命令,只能在单用户login时启动,并不是linux启动时启动
    $ echo "cairo-dock" >> ~/.profile
    
posted @ 2013-01-31 17:41  J. Lingear  阅读(163)  评论(0编辑  收藏  举报