3 ms·
I freaked out when I found out about the "screen" command several years back. "screen" starts a virtual screen that you can detach from with "ctrl-a d" and you
by rburhum 14y ago
I freaked out when I found out about the "screen" command several years back. "screen" starts a virtual screen that you can detach from with "ctrl-a d" and you can log out, login from a different machine/session and reattach with "screen -r". it has history so you can run long running commands and reattach 3 days later to continue from where you left off as if you had been logged in the whole time.
- dirkk0 14y agoand you can do things like "screen -X -S minecraftserver -p 0 -X stuff "say test $(printf '\r')"
- base698 14y agoTmux is the new screen. tmux allows for emacs or vim key bindings to run around the buffer and search, splits horizontal and vertical and easier configuration: http://tmux.sourceforge.net/ http://tmux.sourceforge.net/
- revscat 14y agoYup! You might want to try tmux, though. I used screen for many years and switched over to tmux about 2 years ago, and have been really happy with it. It (tmux) is also maintained more regularly now; screen development seems to have stagnated. Either way, enjoy!
- rburhum 14y agoI will checkout tmux. Thank you!
- re_todd 14y agoTmux is similar, here is a cheat sheet that helped me move from screen to tmux: http://www.dayid.org/os/notes/tm.html http://www.dayid.org/os/notes/tm.html