Score:0

How to let ubuntu terminal show 'lines:xx-yy zz% rest' at the window bottom rather than '--More--'

fr flag

When there are too much contents to show completely (e.g. dpkg -l), terminal showed 'lines:xx-yy zz% rest' at the window bottom in the past. However,after accidentally deleted some files, terminal now shows '--More--' at the window bottom. Now I cannot scroll at all and only 'enter' key can display the next line, which is so inconvenient. I would fairly appreciate it if someone could help tackle this problem.

hr flag
Can you remember what you deleted, in detail? Have you removed the `less` pager package altogether? There are also several environment variables that may affect pager choice (`PAGER`, `DPKG_PAGER`)
Score:0
cn flag

The line

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

is what caused the behavior you are missing. Add that line to your .bashrc file to restore the functionality.

Since you are not quite sure what you did, more that that may be missing. You may prefer to restore a default .bashrc file by copying the default template to your home folder:

cp /etc/skel/.bashrc ~

Perhaps, you should restore any of the hidden files:

cp /etc/skel/.* ~
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.