Skip to main content
Share Your Experience: Take the 2024 Developer Survey
57 votes

Scroll inside Screen, or Pause Output

All these answers addressed how to navigate within a screen session, but there is a built-in functionality in screen command to store everything in a file through the -L argument according to the ...
Mehrad's user avatar
  • 779
38 votes

How to scroll the screen using the middle click?

This will work with all your applications without the need of installing anything. Get your input deviceID. In my case was 11. xinput list If you want, list available properties with xinput list-...
Pablo A's user avatar
  • 2,752
29 votes

How to put current line at top/center/bottom of screen in vim?

Output of the :help scroll-cursor @mtk mentions. Note that there is a difference between zz and z.. Scrolling relative to cursor (scroll-cursor) The following commands ...
Drew Noakes's user avatar
27 votes

Scrollbar moves to where I click

I had the same issue on Firefox 48, and this answer worked for me: Create ~/.config/gtk-3.0/settings.ini and add [Settings] gtk-primary-button-warps-slider = false I'm using XFCE, but Firefox is ...
anol's user avatar
  • 723
17 votes

How to unfreeze after accidentally pressing Ctrl-S in a terminal?

Control Keys: perfrom special functions on Shell Ctrl-S : Pause Display Ctrl-Q : Restart Display Ctrl-C : Cancel Operation Ctrl-U : Cancel Line Ctrl-D : Signal End of File
Premraj's user avatar
  • 2,572
17 votes

Scrollbar moves to where I click

You get the old page-up/down behavior via right-clicking on the scroll bar.
maxschlepzig's user avatar
  • 57.7k
16 votes

Can mouse wheel scrolling work in a Screen session?

Although it is an old question, the method I found best that works for me is using Ctrl + A + ESC key combination. This makes the screen output scrollable. From the documentation page: Virtual ...
xabush's user avatar
  • 293
16 votes
Accepted

less - How to get matching line not be the top line on screen?

You want the -j option. See under "OPTIONS" in the man page: -jn or --jump-target=n Specifies a line on the screen where the "target" line is to be positioned. The target line ...
laktak's user avatar
  • 6,004
14 votes
Accepted

Is it possible to scroll beyond the end of a file in the less pager?

Yes, using J (as in ShiftJ). So you can go to the end of the file with G, then scroll down past the end with J until the last line of the file is at the top of the screen (less won’t let you scroll ...
Stephen Kitt's user avatar
13 votes

tmux mouse scrolling without altering copy/paste?

Hold the shift key when attempting to copy and paste when in 'mode-mouse on'
baligena's user avatar
  • 231
12 votes

How to change scroll speed with libinput?

Libinput does not have any kind of "for every wheel scroll, do n lines/degrees" concept as a common party, the setting seems to be device-specific for now, as some Logitech has the parameter Evdev ...
Mateus Matucuma Teixeira's user avatar
12 votes

Multitail: Scroll up

multitail has several interactive keys of which b will popup a menu asking you to choose which window to scroll. Use the arrow keys to navigate and press enter to select a window. That window will ...
meuh's user avatar
  • 51.7k
11 votes

Mouse scroll wheel speed problem with linux kernel 5.0

One solution is to have solaar running, and make sure that the Wheel Resolution setting for the mouse (M720 in my case) is ON in kernel 5.0, which results in normal scrolling behavior. With solaar set ...
adatum's user avatar
  • 1,161
10 votes

Use Mosh without giving up local scrollback / history?

Eternal Terminal ( https://mistertea.github.io/EternalTerminal/ ) is an alternative to Mosh that supports native scrollback and still allows IP roaming. ET doesn't do the typing prediction, so it may ...
DigitalGhost's user avatar
9 votes

natural scrolling does not work in gnome

I faced the same issue. I had xserver-xorg-input-synaptics installed. I uninstalled it and the problem was solved. After uninstalling, the natural scrolling button works properly.
Dr. Pro's user avatar
  • 91
8 votes

Jump to last prompt in terminal (or tmux)

Inside tmux v2.4+ (relevant commit), you can define a binding to jump to the last prompts with acceptable reliability: bind-key b copy-mode\;\ send-keys -X start-of-line\;\ ...
lbonn's user avatar
  • 268
8 votes

Scroll inside Screen, or Pause Output

If you didn't get it clear checkout https://stackoverflow.com/questions/18489216/how-to-scroll-up-and-down-in-sliced-screen-terminal Try Control+A, then Escape. Then navigate with Up,Down or PgUp ...
Mohamed Allal's user avatar
7 votes
Accepted

How to scroll in a terminal by line in GNOME Terminal 2.31.3?

On more recent versions of gnome-terminal, Shift+Ctrl+↑ and Shift+Ctrl+↓ work for scrolling by line, but I have no way of checking for 2.31.
aplaice's user avatar
  • 443
7 votes

How to change scroll speed with libinput?

There is no current api for changing the scroll speed for libinput devices, but this blog explains how mouse wheel clicks correspond to an angle of movement that you can change per mouse in systemd's ...
meuh's user avatar
  • 51.7k
7 votes
Accepted

Why is my dual-scroll Wheel mouse only behaving as if it has a single wheel?

It seems as though this was noted fifteen years ago! A series of posts over a couple of days (2002/07/17-18) on the Linux Kernel Mailing List, with the title "PS2 Input Core Support" suggests that ...
SlySven's user avatar
  • 537
7 votes

Arch Linux Installer - Scroll back in terminal

If Shift + PgUp/PgDn don't work there's nothing you can do. Scrollback has been recently removed from the Linux kernel due to security issues.
Artem S. Tashkinov's user avatar
6 votes
Accepted

Mousewheel/touchpad scrolling in Browsers

Feature is called "Coasting speed". To disable it you can use: xinput --set-prop --type=float "<your device>" "Synaptics Coasting Speed" 0 0 to list devices you can use: xinput list ...
Mikhail Krutov's user avatar
6 votes

Can I overwrite multiple lines of stdout at the command-line without losing terminal scrollback?

Use tput sc tput ed and tput rc. From tput manual: tput sc Save the cursor position tput rc Restore the cursor position tput ed Clear to end of screen Example: tput sc while :; do tput ed ...
unfa's user avatar
  • 1,745
5 votes

Scrolling is disabled all of a sudden in terminal

The reset command helped me in this case
pkk's user avatar
  • 51
5 votes
Accepted

How can I make imwheel leave most modifier actions as default?

Control_L, Up, Control_L|Button4 Control_L, Down, Control_L|Button5 Shift_L, Up, Shift_L|Button4 Shift_L, Down, Shift_L|Button5 in your .imwheelrc should do the trick. Be sure to restart ...
user2820379's user avatar
5 votes

Scrollbar moves to where I click

I am not sure of the general case , but in FireFox, there is a configuration setting ui.scrollToClick=0 , which gives the behaviour you want. If ui.scrollToClick=1 , then clicking the scrollbar will ...
Prem's user avatar
  • 3,352
5 votes
Accepted

Display file text one page at a time, wait 20 seconds, then auto-advance

This fairly standard awk should be ok on AIX awk '{if(NR>1 && NR%24==1)system("sleep 20");print}' As mentioned in the comments, if you want to exit on interrupt, you can replace the ...
meuh's user avatar
  • 51.7k
5 votes

How to change scroll speed with libinput?

You can make the "steps" of the scrolling smaller therefore making the scroll overall slower with: xinput --set-prop "YOUR TOUCHPAD" "libinput Scrolling Pixel Distance" ...
GMON's user avatar
  • 51
5 votes
Accepted

Can you rescue a shell from an accidental "yes" command?

Graphical terminal emulators normally have a limited number of strings to keep in the scrollback buffer, so if your previous lines have been rotated they are lost. You could increase the number of ...
Artem S. Tashkinov's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible