Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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.