screen is a terminal multiplexer tool in Linux and Unix-like operating systems, including Ubuntu. It allows you to run multiple terminal windows and processes within a single terminal session, and switch between them easily. The terminal windows and processes you run within a screen session will continue to run even if you log out of the terminal or if your connection is lost, making it an ideal tool for running long-running processes or remote terminal sessions.
Here are some key features of screen:
Multiple terminal windows: You can create multiple terminal windows within a single screen session, each with its own shell and process.
Detach and reattach: You can detach from a screen session and reattach to it later, even from another terminal or from a different location.
Persistent processes: The terminal windows and processes you run within a screen session will continue to run even if you log out of the terminal or if your connection is lost.
Customizable: You can customize the behavior and appearance of screen through its configuration file and command-line options.
Copy and paste: You can copy and paste text between terminal windows and between terminal windows and other applications.
screen is a powerful and versatile tool that can simplify the management of terminal sessions, making it an essential tool for many Ubuntu server administrators.
How to use screen on linux :
- Create screen with spesific name : screen -S redis-service
- Destroy or remove screen : screen -X -S [PID] quit
- Exit/deactive from screen : CTRL+a then d