3

is it there any way to scroll up and view the contents of text mode?I was trying to view all the files listed as part of my directory

I can scrollup and view the output of text mode,any way to scroll up and view the output?

5
  • Have you tried the Page Up button?
    – Leathe
    Nov 20, 2015 at 7:17
  • What terminal program are you using?
    – fixer1234
    Nov 20, 2015 at 7:19
  • @fixer1234 i m on kali terminal ,its debian based Nov 20, 2015 at 7:22
  • Some terminals are more robust than others. Konsole has a built-in scroll bar (it may be part of the KDE suite). Check what terminal programs are available and see if one of the alternatives has a scroll bar.
    – fixer1234
    Nov 20, 2015 at 7:34
  • From Konsole (Kde) and the console I can scroll up and down with shift pgup and shift pgdown.
    – Hastur
    Nov 20, 2015 at 9:48

2 Answers 2

4

What I've always done is pipe it with the less command. For example ls | less. Once you do this you can go backwards a single line by pressing the Y key, or backwards N lines by pressing U. And of course you can advance forward a single line by pressing Enter, or Space to advance multiple lines.

For more info on less check out man less.

6

Many terminals, whether the bare console or in a window manager, will let you scroll vertically with Shift-PgUp and Shift-PgDn.

2
  • Does this work in the boot and shutdown kernel log? (Rather than, presumably, the tty you refer to) Oct 29, 2023 at 23:27
  • This worked by default. But it was removed in Kernel 5.8 or newer. lore.kernel.org/stable/…
    – clst
    Jan 26 at 1:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .