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.
如何在几个不同的窗口中使用几个不同的命令启动 gnu screen?
即,(伪代码)
screen -window1="ping google.com" -window2="vim ~/secret_document.txt"
您可以创建一个屏幕配置文件,例如
screen -t "window1" ping google.com screen -t "window2" vim ~/secret_document.txt
然后使用配置文件启动屏幕:
screen -c configfile