Switch between the windows of the current screen session In order to perform these commands, you first need to press Ctrl + a.Ĭreate a new window in the current screen session Furthermore, you can split the shell screen in multiple regions which you can see at the same time. A window corresponds to a tab in a browser and is thus able to run a task independent and parallel. Where the name of the session is needed if more than one exist (running without a name will list the possible sessions).ĭuring a session, you can create multiple windows. On the other hand, you can attach to existing sessions with: If you want to start a new session, you will need to run: This is even more helpful if the ssh connection is unstable or might get interrupted: using screen or tmux, the connection loss does not interrupt the tasks which are currently running in the remote terminal. The download is now still running in the background (without screen it would terminate when exiting the ssh session). Afterwards, one can detach the screen session and then exit the ssh session. Closed sessions cannot be attached to.Ī huge advantage is that these commands decouple task and terminal: you can log into an ssh session, start screen (or tmux), and then start a long-running task (e.g. You can later attach to any session which was detached (e.g. An important concept is detaching and attaching: detaching means that you put a screen / tmux session into the background. Screen and tmux allow to perform multiple tasks at once.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |