Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to check if a package is already present in the my Ubuntu distro by using the command

apt-cache search <name>

the resultant output of command for Java package was very long and ran into several pages.

My Question

How to break the output in Ubuntu at a page full and every line?

share|improve this question
up vote 2 down vote accepted

Please try:

    apt-cache search java | less

Use the arrow keys to scroll forward and backwards. Get out of less with q.

share|improve this answer
Arrow is causing one line at a time, can we scroll down one page at a time. – Gaurav Agarwal Nov 28 '12 at 16:20
Sure, please try: PgDn. – chili555 Nov 28 '12 at 16:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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