496
edits
Line 32: | Line 32: | ||
=== Switching windows=== | === Switching windows=== | ||
Once you have more than one window open, you can switch between them using some of the following commands: | |||
ctrl | ctrl-a n | ||
This command will switch you over to the next window. | |||
ctrl-a p | |||
This one will bring you back to the previous window. | |||
ctrl | |||
to | |||
=== Detaching screen === | ctrl-a a | ||
This will switch between the last two windows that you've been using. | |||
ctrl-a window_number | |||
Using this command, you can specify exactly which window you want to jump to by hitting ctrl and a, then the number on the keyboard of your desired window. This is pretty useful for when you have a lot of windows open in screen. | |||
=== Naming your windows === | |||
You can give each of your windows its own name too for convenience by using this command: | |||
ctrl-a A | |||
This one might seem confusing first as the A is a capital letter in this case, but all you need to do is hit ctrl and a together and release as before, then hold shift and press a to get the capital. After you run it, you'll see a white bar appear at the bottom of your window, where you can change the name of your screen to whatever you like. In this case, the window has just been renamed to "chat". | |||
[[Image:screen3.jpg]] | |||
After you've named a few windows, you can try this command: | |||
ctrl-a " | |||
Yup, even quotation marks can be used in screen commands. So as before you do ctrl-a, then hold shift and hit the 2 key to get the " :) This will bring up a convenient list of all your windows with their names. | |||
[[Image:screen4.jpg]] | |||
From this window you can view and go to any of your windows. The flags on the right indicate whether your window is logged in or not with $ symbol. | |||
=== Detaching and reattaching screen === | |||
The beauty of screen is that it can remain running when you are logged out, therefore allowing you to run time consuming processes in the background. | The beauty of screen is that it can remain running when you are logged out, therefore allowing you to run time consuming processes in the background. | ||
Dettach using | Dettach using | ||
ctrl + a + d | ctrl + a + d | ||
To reattach an allready detached screen, use. | To reattach an allready detached screen, use. | ||
screen -d -r | screen -d -r |
edits