
- Kali Linux Tutorial
- Kali Linux - Home
- Installation & Configuration
- Information Gathering Tools
- Vulnerability Analyses Tools
- Kali Linux - Wireless Attacks
- Website Penetration Testing
- Kali Linux - Exploitation Tools
- Kali Linux - Forensics Tools
- Kali Linux - Social Engineering
- Kali Linux - Stressing Tools
- Kali Linux - Sniffing & Spoofing
- Kali Linux - Password Cracking Tools
- Kali Linux - Maintaining Access
- Kali Linux - Reverse Engineering
- Kali Linux - Reporting Tools
- Kali Linux Useful Resources
- Kali Linux - Quick Guide
- Kali Linux - Useful Resources
- Kali Linux - Discussion
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
Starting Screen
You can start a screen session by typing the command shown below in your terminal.
screen
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
scrollback <num>
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
defscrollback <num>
Where num means the same as in the previous command.
- Related Articles
- How to Kill a Detached screen Session on Linux
- How to list running screen sessions on Linux?
- How to Increase Swap Space on Linux Ubuntu?
- Keeping SSH session alive on Linux
- Running Multiple Commands in the Background on Linux
- Running GUI applications on docker in linux
- How can I profile C++ code running on Linux?
- How to Clear Linux terminal screen?
- Detach Screen From Another SSH Session
- Redirecting the Output of an Already Running Process on Linux
- How to find and kill running processes in linux
- How to get the start time of a long running Linux Process?
- How to check the syntax of a Bash script without running it in Linux?
- Ensure Only One Instance of a Bash Script Is Running on Linux
- How to check Syntax of a Bash Script without running it in Linux?
