I have a VPS with Ubuntu running on it. I have a text file I opened with nano. However there are too many lines there and only the first 20 or so lines get displayed. After those 20 lines is this:

enter image description here

How do I make it display the rest? I can jump to some line using Ctrl+_, but I'd rather have the whole file displayed so I could scroll my way through it.

  • 1
    Use the <up> and <down> arrow keys - it's magic & scrolls (nano is not my favorite editor, but you chose it) – guiverc Apr 1 '19 at 21:33
  • @guiverc Do you mean Ctrl+Up and Ctrl+Down or simply Up and Down? Which editor would you recommend? – parsecer Apr 1 '19 at 21:35
  • 2
    I don't use nano , I just opened a term & nano jounr.. (a big text file) and arrow keys scrolled the text file up & down for me (somewhat jerky, it scrolled a few lines each time (not the one line I like with view or vim - but I've been using vi since the end 80s so anything else wouldn't feel like home) – guiverc Apr 1 '19 at 21:40
  • @guiverc Thank you for the answer. Currently all command line editors feel foreign to me and I'm constantly afraid to screw things up. But I'll check out vim. – parsecer Apr 1 '19 at 22:38
  • 2
    Note, if you only want to read the file, use less or more – glenn jackman Apr 1 '19 at 22:45

If your Terminal window is small, large text will certainly get truncated. You can either use (upwards arrow) / (downwards arrow) keys or your mouse scroll wheel to scroll up or down to view the truncated part.

Alt+X toggles the display of the two last lines that display the functions of the hotkeys. Turning this off will help preserving some screen real estate for text.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.