What is Screen?
Screen is a simple window manager or emulator of UNIX terminal, allowing to run in a single teminal multiple processes in separate windows and switch between them. It is used commonly on shell unix accounts, when we want to leave running program and logout. Our program will be in this case irssi, thus we stay online 24/7. Basic commands must know. Screen emulator offers to you both, text and shortcut commands. Text commands screen -S NameOfProgram ex: screen -S irssi //creates new virtual window named irssi Now you can run irssi with .irssi screen -d //[detached from 22955.irssi] detaches window named irssi with process ID (PID) 22955 Now irssi is launched as a background process and we can work on other stuff on our shell. We want to take a look whats up on IRC so we reattache to window named irssi: screen -r irssi //reattaches window named irssi with irssi running screen -list //list all screen windows screen -wipe //if something brakes down it wipes damaged windows Keybord-shortcut commands.
Hint: If you want to keep windows split after detaching screen session(commands :split or :split -v or ctr-a | etc.) than after creating new screen you should type ":layout new" and create new screen with command :screen and create window split. See photos below. On one of my shell accounts, layout new didn't worked... The other use for screen cam be downloading or uploading files with wget program, example: wget https://www.dropbox.com/s/n09t9u66v7ce5jo/eggdrop1.8-snapshot.tar.gz If you don't like screen, there are similar programs like Tmux or Dvtm & Dtach. Multitasking of such emulators makes life easier and it can be fun. This tutorial shows only the small part of potential what screen is and can be. For more options read man file. |
|