Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户使用例如 Putty 登录到我的 Debian 服务器时,我需要执行以下操作:
screen -r MyWindow
我怎样才能做到这一点?
您可以将脚本放在 /etc/prodile 下,也可以将命令放在用户主目录的 .bash_profile 下
将您的命令写入/etc/init.d/rc.local,并将 ln 写入所有 rc.X
vi /etc/init.d/rc.local i screen -r MyWindow :wq ln -sf /etc/init.d/rc.local /etc/init.d/rc.3 (default)