- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to increase the scrollback buffer in a running screen session on Linux?
Screen or sometimes also known as GNU Screen, is a terminal multiplexer. What it means is that it allows you the privilege to start a screen session and then open any number of windows inside that session.
It might also be interesting to note that a process that is running in Screen will continue to run even when their window is not visible anymore.
Installing Linux Screen
In order to install the screen package if it is not already present on your linux distribution, you can run any of the suitable commands shown below for your machine.
For Ubuntu and Debian
sudo apt update sudo apt install screen
For CentOS and Fedora
sudo yum install screen
You can start a screen session by typing the command shown below in your terminal.
Now we know how to install a screen and make use of it, the following command shown below will list all of the screen sessions for a user.
When it comes to increasing the scrollback buffer in a running screen session, it is not possible to retroactively increase the scrollback buffer length in the current session in order to recover the old lines that have already been discarded. Instead, what you can do is change the current scrollback parameter setting.
To change the current rollback parameter setting on your linux machine for a current session follow the steps shown below
Press CTRL + A, followed by − then type the command shown below
Where num is the number of lines of scrollback that you want for your current screen session.
It should also be noted that you can also set the default number of scrollback lines by typing the following command
Where num means the same as in the previous command.
- How to list running screen sessions on Linux?
- How to Increase Swap Space on Linux Ubuntu?
- Running GUI applications on docker in linux
- How can I profile C++ code running on Linux?
- How to get the start time of a long running Linux Process?
- How to find and kill running processes in linux
- How to Increase the Size of a Linux LVM by Adding a New Disk?
- How to center a window on the screen in Tkinter?
- How to check the syntax of a Bash script without running it in Linux?
- How to center a div on the screen using jQuery?
- How can I profile C++ code running in Linux?
- How to add a user to the group on linux
- Increase number of maximum open files in linux
- How to Increase Page Views on Your Blog
- How to show historical and statistical running time of linux systems