Linux启动/关机时执行脚本

来源:http://blog.chinaunix.net/uid-21209618-id-370787.htmlhtml   在.login中执行相应命令,或在.bashrc(用tcsh shell,在.tcshrc)里写命令。是不行的,.login是在用户登陆时执行,用户可能在本地无需登陆,或者在远程多个用户登陆,屡次登陆;而.tcshrc是在shell启动时执行,登陆后用户通常会屡次打开she
相关文章
相关标签/搜索