How do I scroll up and down one line in terminal?
Cmd arrow up / down, scrolls one page up / down, but how do I scroll 1 line?
Cmd arrow up / down, scrolls one page up / down, but how do I scroll 1 line?
SmithIT2000 wrote:
Cmd arrow up / down, scrolls one page up / down, but how do I scroll 1 line?
Is this in an editor?
Use the up arrow if you are wanting previous command line.
Use the mouse/Trackpad if you are scrolling text output.
Command up-arrow for scrolling up through the prompts
If this is buffer question—
Hello SmithlT2000,
Happy to help. Thank you for the question. The Mac keyboard shortcut Control-P will move up one line. Control-N will move down one line.
We hope this helps. Let us know if you have any questions.
Maybe this is what you are looking for?
history | less
This will give you a list of previous commands. You can use up & down arrows to scroll slowly or Page Up & Page Down. You won't be able to execute any commands when viewing them this way, but you can at least see all the commands previously used.
As I just said "This has nothing to do with what is running inside the terminal, the ability to scroll is implemented by terminal itself."
I want to scroll the actual window. Nothing to do with the shell.
Go to terminal, cat a large file, then hold down the "fn" button while tapping the "arrow up" button, every time you tap "arrow up" it will show you the next page of what the output was. Just try it.
At the Terminal prompt, it does not re-read previous scrolled data when you move the cursor around. Terminal prompt accepts your NEW typed input, ONLY. That is why this environment is referred to as "Command-line input".
As leroydouglas suggests, you can press up-arrow to have the computer automatically re-type the previous ONE line, [and again as many times as you like] but that is NOT somehow "moving" there. It is re-typing the previously-typed line.
SmithIT2000 wrote:
All answers so far are totally wrong -- would you pls test what you are saying before you type. thx.
I have never had an issue scrolling in Terminal using the trackpad—
Maybe you need to paint a bigger picture if "All answers so far are totally wrong."
Start with—
exact Mac?
exact macOS you are using ?
and what Shell you are using?
old issue, new issue, what changed?
Is this in an editor or the Command line interface...
I have a MacBook Pro (15-inch 2019). The OS is Catalina 10.15.7
The piece of software is called Terminal - it comes as standard.
This has nothing to do with what is running inside the terminal, the ability to scroll is implemented by terminal itself.
Holding fn + up or down arrow, scroll backward or forward through the terminal history. It scrolls by one whole page for whatever the size of the terminal window at the time.
Scrolling one whole page can be annoying, because something the few lines of history you are interested in goes over a page break.
What I want is something like fn + up / down -- but instead of scrolling a page, it scrolls one line.
Does it make sense what I want?
<< Does it make sense what I want? >>
No, it does not.
Just scroll the window as much as you want. The exact amount does not matter, because only newly-typed (or auto-recalled) input is take at the blockcursor.
Joseph-_S--
¿did you TEST your suggestions in Terminal ??
"moving down one line" in Terminal is meaningless.
All answers so far are totally wrong -- would you pls test what you are saying before you type. thx.
I don't want to use the scroll bar, I want to use keys. ^
How do I scroll up and down one line in terminal?