<\/figure>\n\n\n\n9. Save the layout for later use with the layout dump command<\/h2>\n\n\n\n If you get into the habit of using screen to split your terminal, you will eventually get tired of having to set the session up after every reboot.<\/p>\n\n\n\n
This can be solved easily by saving the layout to a text file. Which you can then load whenever you want to create a new session.<\/p>\n\n\n\n
To start, you will need to get into command mode in your screen session. Do this by hitting Ctrl-a :<\/p>\n\n\n\n
Now type the layout dump command. Replace “.my_filename” with the file name you wish to use.<\/p>\n\n\n\n
layout dump .my_filename<\/code><\/pre>\n\n\n\nThat’s it! The next time you want to start screen with this layout, just start it normally. Get into command mode again with Ctrl-a : and enter this command:<\/p>\n\n\n\n
source .my_filename<\/code><\/pre>\n\n\n\nYou can even have this layout loaded automatically whenever you start screen. Just add the source command to your .screenrc file:<\/p>\n\n\n\n
echo source .my_filename >> ~\/.screenrc<\/code><\/pre>\n\n\n\n10. Move to a specific region with the focus command<\/h2>\n\n\n\n If you have many regions in your setup, Ctrl-a TAB might not be very convenient. Since that sequence only cycles through the regions in the order that they appear. Cycling through ten regions to get to the one above you is going to be annoying.<\/p>\n\n\n\n
Enter the focus command! Go back into command mode by hitting Ctrl-a :<\/strong>. Now you can enter focus followed by the direction you want to move. Like if you wanted to go down one region, enter:<\/p>\n\n\n\nfocus down<\/code><\/pre>\n\n\n\nOptions for the focus command<\/h4>\n\n\n\n\nnext<\/li>\n\n\n\n prev<\/li>\n\n\n\n up<\/li>\n\n\n\n down<\/li>\n\n\n\n left<\/li>\n\n\n\n right<\/li>\n\n\n\n top<\/li>\n\n\n\n bottom<\/li>\n<\/ul>\n\n\n\n11. Resize the area with the resize command<\/h2>\n\n\n\n Another handy command for split-screen is the resize command. Normally, each region gets equal space with other regions within the same space. With resize, you can set the size of the region as you wish.<\/p>\n\n\n\n
Again, enter the command mode with Ctrl-a :<\/strong>. To set the region to it’s maximum size you can enter:<\/p>\n\n\n\nresize max<\/code><\/pre>\n\n\n\nScreen resize commands<\/h4>\n\n\n\nresize +n<\/td> Increase size by n columns<\/td><\/tr> resize -n<\/td> Decrease size by n columns<\/td><\/tr> resize n<\/td> Set the size to n<\/td><\/tr> resize 30%<\/td> Set the size to 30% of its original size<\/td><\/tr> resize -b<\/td> Set size of all regions to equal size<\/td><\/tr> resize max<\/td> Set the size to its maximum value<\/td><\/tr> resize min<\/td> Set the size to its minimum value<\/td><\/tr> resize -h +20<\/td> Increase size by 20 horizontally<\/td><\/tr> resize -v +20<\/td> Increase size by 20 vertically<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\nThat’s it for now<\/h2>\n\n\n\n I think we have covered everything you need to know to use screen splitting in Linux screen. If you are interested in other ways to split your terminal, you might want to take a look at tmux or the terminator terminal. The latter is the terminal that I use every day. It is the one that is pictured in the screen shots above.<\/p>\n","protected":false},"excerpt":{"rendered":"
So you are one of those people that works on 10 things at once. Or maybe,…<\/p>\n","protected":false},"author":1,"featured_media":1954,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[27],"tags":[42],"yoast_head":"\n
GNU screen: split the screen - Linux Digest<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n\t \n\t \n\t \n